[svn] 1090: compiler: class renaming in the mxml package

Revision: 1090
Author: [email protected]
Date: 2008-04-03 11:59:00 -0700 (Thu, 03 Apr 2008)
Log Message:
compiler: class renaming in the mxml package
* flex2.compiler.mxml.builder:ApplicationBuilder to AbstractDocumentBuilder
* flex2.compiler.mxml.builder:Builder to AbstractBuilder
* flex2.compiler.mxml.dom:ApplicationNode to DocumentNode
Bugs: n/a
QA: No
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraph Builder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ArrayBuilder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/InlineComponentBuild er.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/PrimitiveBuilder.jav a
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Scanner.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/ValueNodeHandler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/DocumentInfo.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/DocumentNode.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ApplicationBuilder.j ava
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/Builder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/ApplicationNode.java

Plz help me...

Similar Messages

  • [svn] 1091: compiler: class renaming in the compiler package

    Revision: 1091
    Author: [email protected]
    Date: 2008-04-03 13:32:09 -0700 (Thu, 03 Apr 2008)
    Log Message:
    compiler: class renaming in the compiler package
    * flex2.compiler:Context to CompilerContext
    * flex2.compiler.util:Console to ConsoleLogger
    Bugs: n/a
    QA: No
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/StyleExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConsole.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Context.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Console.java

    Out of curiosity, do you have a directory called WEB-INF inside of
    MyPortal\portalApp\portlets\WFWeb? If so, can you try removing/renaming it?
    "Gavin" <[email protected]> wrote in message
    news:40581f2e$[email protected]..
    >
    I create a Application naming "MyPortal" in WorkShop.
    And create a Project naming "portalApp".
    In folder "portalApp", I create a folder "portlets"
    And create a PageFlow in folder "portlets", so I get a jpf naming"WFWebController.jpf"
    >
    >
    W:\bea\user_projects\applications\MyPortal\portalApp\portlets\WFWeb\WFWebCon
    troller.jpf
    >
    But I add some java code in the method of WFWebController.jpf
    when I run the WFWebController.jpf from workshop
    the compiler throws a ERROR message "A PageFlowController at the root ofthe web
    application must be in the default package."
    Have any solution about this ERROR ?
    Thanks,
    Gavin.

  • [svn] 1152: compiler: class renaming and opportunistic warning cleanup

    Revision: 1152
    Author: [email protected]
    Date: 2008-04-08 15:22:04 -0700 (Tue, 08 Apr 2008)
    Log Message:
    compiler: class renaming and opportunistic warning cleanup
    * flex2.compiler.as3:Configuration to As3Configuration
    * flex2.compiler.mxml:Configuration to MxmlConfiguration
    * flex2.linker:Configuration to LinkerConfiguration
    Bugs: n/a
    QA: Soon!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/NodeFactory.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/HTTPServiceAnalyzer .java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/RemoteObjectAnalyze r.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/SyntaxAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/WebServiceAnalyzer. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraph Builder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ArrayBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/HTTPServiceBuilder.j ava
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/InlineComponentBuild er.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ModelBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/PrimitiveBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/RemoteObjectBuilder. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ServiceRequestBuilde r.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/WebServiceBuilder.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/AnalyzerAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedProperty Declaration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/ConsoleApplication.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/SimpleMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PostLink.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.jav a
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DModule.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/expression/ASTBuilder.java
    flex/sdk/trunk/modules/debugger/src/java/flash/util/URLEncoder.java
    flex/sdk/trunk/modules/debugger/src/java/flex/tools/debugger/cli/ExpressionContext.java
    flex/sdk/trunk/modules/debugger/src/java/flex/tools/debugger/cli/LocationCollection.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/LinkerConfiguration.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/Configuration.java

    You need to rewrite the script to do that eg maybe use Get-Mailbox to feed
    get-mailboxfolderstatistics, you'll still need to process each and every mailbox individually.
    >> Thank you for any help you can offer, I'm not very experienced with Powershell or scripting in general, so this feels like I'm diving in a little deep.
    with a script like this that deletes data you do want to be very careful if your going to run it against 100's of mailboxes, my suggestion is you rewrite it first as a reporting script where you just output the result to a text file then when you have that
    running well and your confident it's not going to delete anything that it shouldn't you can than change it to a script that deletes things.
    Cheers
    Glen

  • [svn:osmf:] 15863: Remove FLEXOSMF 4.0 tagging, the OSMF for Flex 4 version of this class lives in the display package

    Revision: 15863
    Revision: 15863
    Author:   [email protected]
    Date:     2010-05-02 19:20:15 -0700 (Sun, 02 May 2010)
    Log Message:
    Remove FLEXOSMF 4.0 tagging, the OSMF for Flex 4 version of this class lives in the display package
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/layout/ScaleMode.as

    What I've done is remove osmf.swc from the Flex 4.0 sdk, then I added the new osmf.swc file to my libs folder for my project. Is there a for updating osmf in Flex 4.0 it works nativly with the sdk. The original reason why I got errors was because the frameworks/projects/osmf/src/OSMFClasses.as  packages in Flex 4 were not the same as the new osmf.swc (most of the flex 4 swc have these package reference files). So those would have to be updated every time the osmf packages change.

  • Cannot resolve symbol when the classes are in the same package

    i have one interface and two classes all in the same package. am getting " cannot resolve symbol", when the code refers to the interface or the class .
    the package name is collections.impl and
    the directory i used to store all the java files:
    c:\jdk\bin\collections\impl.
    isthere any othe option other than compiling all the files from the comand line at the same time?
    please help - i m new to java.

    If you have:
    I.java:
    package some;
    public interface I {
        void method();
    }A.java:
    package some;
    public class A implements I {
        public void method() {
            new B();
    }B.java:
    package some;
    public class B implements I {
        public void method() {
            new A();
    }in c:/temp/some for example
    you can compile your files with
    javac c:/temp/some/*.java
    It seems that you have errors in your code.
    Recheck it twice or use NetBeans IDE(http://www.netbeans.org) it will do this for you ;)

  • Using classes outside of the default package in OATS 12.3.0.1.0

    Hello,
    OpenScript - Version: 12.3.0.1 Build 376.
    The test fails when I use classes that are not in the default package.
    Here is a simple example:
    TempClass - in the default package, I can create new objects and use it's methods without any errors.
    AlienClass - in another package (which name is anotherPackage) of the same project, I import that package into the script.java but I get an exception while creating new class object:
    "An unexpected exception occurred in the script. Script section: Unspecified. Caused by: ClassNotFoundException occured. anotherPackage.AlienClass "
    import anotherPackage.*;
    public void run() throws Exception {
      TempClass tmp = new TempClass(); // no errors while creating
      info(tmp.generateMessage());           // this method works correctly
      AlienClass al = new AlienClass();
      /* here I've got error
      *An unexpected exception occurred in the script.
      * Script section: Unspecified.
      * Caused by: ClassNotFoundException occured. anotherPackage.AlienClass 
    There are no such problems in OpenScript Version: 12.2.0.1 Build 223.
    Could you help me, please?
    Best regards,
    Natalie

    Hi, Sri!
    It was not necessary to name the root package "lib" in previous versions of OpenScript (12.2.0.1, 9.X.X).
    Except the default package, my work project in 12.2.0.1 included one main user package named by the testing application (let's call it "myApp"). And other packages and classes were located there.
    For example:
    D:\Development\TestProject\myApp\core\DB.java
    D:\Development\TestProject\myApp\test\Test1.java
    D:\Development\TestProject\myApp\test\Test2.java
    D:\Development\TestProject\myApp\web\common\Authorization.java
    etc.
    Project with such structure worked in OpenScript 12.2.0.1 but doesn't work in 12.3.0.1.
    According to your advice I created a new package - D:\Development\TestProject\lib, moved "myApp" with all included packages and classes into that package and corrected import statements (like lib.myApp.core.* instead of myApp.core.*).
    And then no errors appeared! So thank you very much! But it's interesting, why behaviour of OpenScript concerning package's name has changed?
    As for example from the first message,  import statement was in the same place where OpenScript added others packages during creating a new project. I've just tried to save some space in the message
    The full script.java is:
    import oracle.oats.scripting.modules.basic.api.*;
    import oracle.oats.scripting.modules.browser.api.*;
    import oracle.oats.scripting.modules.functionalTest.api.*;
    import oracle.oats.scripting.modules.utilities.api.*;
    import oracle.oats.scripting.modules.utilities.api.sql.*;
    import oracle.oats.scripting.modules.utilities.api.xml.*;
    import oracle.oats.scripting.modules.utilities.api.file.*;
    import oracle.oats.scripting.modules.webdom.api.*;
    import oracle.oats.scripting.modules.adf.api.*;
    import anotherPackage.*;
    public class script extends IteratingVUserScript {
      @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
      @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
      @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
      @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
      @ScriptService oracle.oats.scripting.modules.adf.api.ADFService adf;
      public void initialize() throws Exception {
      public void run() throws Exception {
      TempClass tmp = new TempClass(); // no errors
      info(tmp.generateMessage());     // this method works correctly
      AlienClass al = new AlienClass();
      /* here I've got error
      *An unexpected exception occurred in the script.
      * Script section: Unspecified.
      * Caused by: ClassNotFoundException occured. anotherPackage.AlienClass 
      public void finish() throws Exception {

  • Problem accessing Class A from Class B in the same package

    Hi,
    I have two classes, Class A and Class B residing in the same directory.
    Class A is called as QuitGreen65
    Class B is called as Green65
    QuitGreen65 has been defined as
    public class QuitGreen65 extends Dialog {
    and Green65 has been defined as
    public class Green65 extends Frame {
    In Green65 I have a function with the following piece of code
    void Green65_WindowClosing_Interaction1(java.awt.event.WindowEvent event)
         try {
              // QuitDialog Create and show as modal
              (new QuitGreen65(this, true)).setVisible(true);
    catch (Exception e) {
    Althoug this looks fine to me, I am getting the following error during compilation
    Green65.java:267: cannot resolve symbol
    symbol : class QuitGreen65
    location: class Green65
    (new QuitGreen65(this, true)).setVisible(true);
    ^
    Could anyone please help me in resolving this situation,
    Thanks,
    Rahul.

    This would happen if the class path were incorrect. The classpath needs to include the location of the root of the package hierarchy and the hierarchy needs to be reflected in your directory structure.
    Chuck

  • Unable to compile class for JSP. apache-tomcat-6. What could be wrong?

    Hello, I am new to JSP and I am trying a very basic jsp and class file on Windows XP. I get the Unable to compile class for JSP.
    Steps that I have done:
    javac ch06_01.java , placed the ch06_01.class under
    C:\Apps\apache-tomcat-6.0.16\webapps\ch06\WEB-INF\classes
    Then grabbed the ch06_02.jsp and placed it under
    C:\Apps\apache-tomcat-6.0.16\webapps\ch06\
    When I run it (by placing this into Explorer or Firefox URL
    http://localhost:8080/ch06/ch06_02.jsp) I get the error further
    below. Things I have done and made sure they are in place are:
    set up JAVA_HOME to C:\Apps\jdk1.6.0_06
    Using CATALINA_BASE: C:\Apps\apache-tomcat-6.0.16
    Using CATALINA_HOME: C:\Apps\apache-tomcat-6.0.16
    Using CATALINA_TMPDIR: C:\Apps\apache-tomcat-6.0.16\temp
    Using JRE_HOME: C:\Apps\jre1.6.0_06
    I did a google on the error and I found people saying to place the
    tools.jar from the jsk into the lib directory under CATALINA_HOME. But
    the examples still don't work. What step could I be missing? Your help is greatly
    appreciated.
    This is the simple jsp file:
    <%@ page import="ch06_01" %>
    <HTML>
    <HEAD>
    <TITLE>Using a JavaBean</TITLE>
    </HEAD>
    <BODY>
    <H1>Using a JavaBean</H1>
    <% ch06_01 messager = new ch06_01(); %>
    The message is: <%= messager.msg() %>
    </BODY>
    </HTML>
    this is the simple ch6_01 java file:
    public class ch06_01
    public ch06_01()
    public String msg()
    return "Hello from JSP!";
    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:
    An error occurred at line: 6 in the generated java file
    The import ch06_01 cannot be resolved
    An error occurred at line: 9 in the jsp file: /ch06_02.jsp
    ch06_01 cannot be resolved to a type
    6: <BODY>
    7: <H1>Using a JavaBean</H1>
    8:
    9: <% ch06_01 messager = new ch06_01(); %>
    10:
    11: The message is: <%= messager.msg() %>
    12:
    An error occurred at line: 9 in the jsp file: /ch06_02.jsp
    ch06_01 cannot be resolved to a type
    6: <BODY>
    7: <H1>Using a JavaBean</H1>
    8:
    9: <% ch06_01 messager = new ch06_01(); %>
    10:
    11: The message is: <%= messager.msg() %>
    12:
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:316)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Edited by: indikon1 on Jun 12, 2008 1:18 PM
    I just updated the directories of the variables to reflect the current status of my system.

    What is wrong is that you are using an "old" jsp tutorial :-)
    Since Java 1.4, JSPs have been unable to access classes in the "default" package.
    What you need to do:
    Put the java class ch06_01 in a package.
    Steps to do this
    - Edit ch06_01 and add the following to the very top of the file (without the quotes): "package mypackage;"
    - create a folder "mypackage"
    - move ch06_01.java into that folder
    - compile that class (now in the mypackage package)
    - place ch06_01.class under C:\Apps\apache-tomcat-6.0.16\webapps\ch06\WEB-INF\classes\mypackage
    In your jsp:
    <%@ page import="mypackage.ch06_01" %>
    I would suggest using a more up-to-date tutorial that uses JSTL.
    Take a look at this [Apache Tomcat tutorial|http://www.coreservlets.com/Apache-Tomcat-Tutorial/index.html]

  • Can't find the servlets package when compiling

    Hi,
    My problem is that when I compiling my servlets so can't the compiler find the two packages javax.servlet and javax.servlet.http.
    Why?
    Please can someone help me with this problem!
    HelloServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    HelloServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;

    OK,
    It seems like it will work with your proposal to. But now I have a new problem that you maybe can solve for me. That is when I try to test the following (from the book More Servlets and JavaServer Pages):
    Test 3: A Servlet That Uses Packages and Utilities
    The final servlet you should test to verify the configuration of your server and development environment is one that uses both packages and utility classes. HelloServlet3.java is a servlet in the moreservlets package that uses the ServletUtilities class to simplify the generation of the DOCTYPE (specifies the HTML version--useful when using HTML validators) and HEAD (specifies the title) portions of the HTML page. Those two parts of the page are useful (technically required, in fact), but are tedious to generate with servlet println statements.
    Since both the servlet and the utility class are in the moreservlets package, they should go in the moreservlets directory. If you get compilation errors, go back and check your CLASSPATH settings--you most likely forgot to include the top-level development directory. I've said it before, but I'll say it again: your CLASSPATH must include the top-level directory of your package hierarchy before you can compile a packaged class that makes use of another class from the same package. This requirement is not particular to servlets; it is the way packages work on the Java platform in general. Nevertheless, many servlet developers are unaware of this fact, and it is one of the (perhaps the) most common errors beginning developers encounter.
    Once you compile HelloServlet3.java (which will automatically cause ServletUtilities.java to be compiled), put HelloServlet3.class and ServletUtilities.class in install_dir/webapps/ROOT/WEB-INF/classes/moreservlets. Then, access the servlet with the URL http://localhost/servlet/moreservlets.HelloServlet3. You should get a simple HTML page that says "Hello (3)".
    This works not for me! I will get this message when I try to compile HelloServlet3.java:
    C:\Apache-Tomcat-4.1.27\ServletsDevel>javac HelloServlet3.java
    HelloServlet3.java:23: cannot resolve symbol
    symbol : variable ServletUtilities
    location: class moreservlets.HelloServlet3
    out.println(ServletUtilities.headWithTitle(title) +
    ^
    1 error
    Do you know what the problem is?

  • Signing 2 different classes in the same package differently.

    I have a class B in the default package.
    I have another class C which is kept in a jar file without any package information. I have signed this jar file in using one alias in my keystore.
    class B instantiates class C and passes its own reference to it.
    When I run class B, i get an error saying,
    Exception in thread "main" java.lang.SecurityException: class "C"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at B.main(B.java:23)
    Does this mean, I cannot have 2 classes in the same package, signed differently?
    Thanks
    AahRiMaaN

    coupdegrace wrote:
    JoachimSauer wrote:
    Force1 wrote:
    Do the files get automatically compiled if they are in the same package ?No, but if the class you compile depends on another that's not yet been compiled (or for which the source is newer than the .class file), then it will be compiled as well.Like,say If i add a int parameter, amethod(int i),then I will get a error,isn't it ?It actually gives a error.
    Also it will compile automatically only for the first time and any changes made to any file will have to be compiled into latest .class files ?Yes.
    Did compile the files under the above constraints.
    So it is a smooth "run" for the first time,but not after editions to the either files.
    I would appreciate if experts give some feedback on this.
    Thank you.

  • UNABLE TO USE  COMPILED CLASSES STORED IN DIFFERENT FOLDERS

    Can you help me out
    i have a problem i have been creating various modules and the compiled classes files are stored in different folders and i want the module to access the compiles classes file from the respective folders can any one give me some idea how to get it working.
    thankyou

    You need to make the folders into packages. Say you have 2 folders, one with your core classes named "core", and one with your GUI classes named "gui". These folders are in a folder called "myprogram". You then put a statement at the top of each file in the "core" folder like this: package myprogram.core; Do the same with all the java files in the "gui" folder as well, but replace .core with .gui. Then, you import your own package the same way you do normal java packages: import myprogram.core.*;
    I hope that makes sense, for more info here is the Java tutorial: http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

  • Compiler Class in Extended RTSJ

    Hello Friends,
    For my real time application i am using following options at the start of the VM.
    -XX:+ITCRT -XX:+ITCJLT -XX:+CompilePreLoaded -Drtsj.precompile=nhrt.precompile -Drtjs.preload=itc.preload -Drtsj.preinit=itc.preinit
    But i want to give the compile list of method and class list for the pre initialization, programatically at the run time.For this i found methods in the RTJ Documentation. According to documentation we can do this by using mark(), preinit() and preload() method of the Compiler Class. when i tried to find this compiler class in the library of the RTJ i m unable to ...............i am able to find only api of the Compiler class but at the time of implementation class is not present in the jar files.......................
    please tell me where i can find this Compiler class for RTJ or in which jar file this class is present
    Also tell me if Compiler class is not present then how i can do the above step.............
    Thanks

    This Error occurs:
    cannot find symbol
    symbol: method preinit()
    location: class *java.lang.*Compiler
    You want com.sun.rtsjx.Compiler. I'll get the Compilation Guide fixed to make that clear.
    And myRealtimeThread is not compiled, so that I can't use the VM afterwards (with the parameters: -XX:+RTSJBuildClassInitializationList) to create the list out of my myRealtimeThread.class code.
    Maybe I have missunderstood the usage of Compiler.preinit()!? Maybe someone can explain its correct usage or give a short example for compiling this correctly.I think you have misunderstood. ITC can perform pre-initialization based on the -Drtsj.preinit=<filename> option passed at VM startup. This will cause the listed file to be read and for each class listed there to be pre-initialized. This list can be generated for you by using the -XX:+RTSJBuildClassInitializationList runtime option - which creates a list of all classes that were compiled-at-initialization time (ie those classes compiled because of the precompile list.) Alternatively you can use the com.sun.rtsjx.Compiler class to perform dynamic "pre-initialization" at runtime by passing it a URL to a file that contains the list of classes to be immediately initialized - the idea being that you would have created the contents of this file at runtime based on information that only became available to you at runtime.
    Hope this clarifies things.
    David Holmes

  • Question about the generated package of an RMI stub class.

    Does anyone know why rmic tool generated stubs are in the same package as the class that implements the remote interface? For example, say I have an interface, MyRemoteInterface, in the foo.bar package, and an implementing class, MyRemoteImpl, in the baz package. When baz.MyRemoteImpl is compiled by rmic, a stub, MyRemoteImpl_Stub, is generated in the baz package.
    Now I would have thought that MyRemoteImpl_Stub would have been generated in the foo.bar package, as the stub is to be used on the client to handle calls at the interface level. In other words, the baz package really only makes sense on the server. This is in fact how stubs are generated for CORBA using the -iiop flag to rmic.
    Is there at least a way to specify the generated package?

    if u are running rmic on a class called com.yourmi.MyClass the stub will be generated with
    exactly the same package.
    the only thing that u can change is the location of the stub (for example, in another directory)
    but also in that other directory you will find com\yourmi\MyClass_Stub
    regards
    marco

  • How do I load a properties file that is in the same package?

    I have the following package:
    com.company.ldap
    In the package I have:
    main.java
    settings.properties
    I want to load the values in the settings.properties file in code, such as:
    propertiesFile = "settings.properties";
            try {
                properties.load(new FileInputStream(new File(propertiesFile)));
            } catch (IOException e) {
                ... error logging logic ...
            }I keep returning "The system cannot find the file specified".
    How do I properly load a properties file in a class file within the same package?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Put the file in the classpath (such as in the parent directory of com/company/ldap). Then obtain an input stream to that file like this:
    InputStream stream = getClass().getResourceAsStream("/settings.properties");
    Then use that stream in the properties.load method. Remember to close the stream as well.

  • [svn] 1170: compiler: renaming the Compiler classes

    Revision: 1170
    Author: [email protected]
    Date: 2008-04-09 16:17:57 -0700 (Wed, 09 Apr 2008)
    Log Message:
    compiler: renaming the Compiler classes
    * flex2.compiler.abc:Compiler to AbcCompiler
    * flex2.compiler.as3:Compiler to As3Compiler
    * flex2.compiler.css:Compiler to CssCompiler
    * flex2.compiler.i18n:Compiler to I18nCompiler
    * flex2.compiler.mxml:Compiler to MxmlCompiler
    Bugs: n/a
    QA: Yes
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/MetaDataParser.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/AbcCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlCompiler.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java

    In the properties of your project, there is a page called "Java Build Path". On the bottom of that page, there is this field "Default output folder" in which you can specify to which directory Eclipse should write the .class files.
    Then, for the build options, go to the Run Dialog (Run menu, Show Run Dialog). There you might have several configurations for several programs. Select yours, and go to the Arguments tab. There you have fields for program arguments (the String [] args), and VM arguments (like the -DProtoge.dir=)
    Good luck!

Maybe you are looking for

  • How to make extended field mandatory in Master Agreement

    Hello All, I am new to SAP CLM, and I have requirement where one extended field in master agreement needs to be made as mandatory field. I tried in extension definition but check box to make it required is disabled and I am unable to find other way t

  • Scheduling Agreement New Delivery Schedule With & Without Proposal

    Hi Experts! I had an issue regarding our scheduling agreements. Issue is below: What is the difference between "New Delivery Schedule <b>WITH</b> Proposal" and New Delivery Schedule <b>WITHOUT</b> Proposal"? Any responses will be greatly appreciated

  • How can I stop and delete a movie from downloading

    I recently purchased the movie takers , and it's taking up all my space . I just want to get rid of it

  • Form PDF Save/Export so no longer a form?

    I am working to create a layout, exported to a PDF, form fields added that will be sent to a company's department as like a master document. They would then take that, fill in the info and either save it out or export it so they can email it to anoth

  • Problem in adding field values?

    Hi all, I am using table COSP in my program. The requirement is i need to add the field values(SMEXXX) of this table structure  until the period entered in seletion-screen. i.e if the period is 005. i need to add SME001 UNTIL SME005 TO a variable. if