Overriding inherited annotations

Hi,
I wish to use the “ParameterPriority” annotation to determine the order of the fields appearance when displaying these objects in a GUI.
Both B and C classes extends class A. If B and C wish to change the appearance order of class A fields, is there a way to override class A annotation values? (or is there another way to obtain this functionality via annotations?)
Bellow you can find a very stupid example for the situation I've described.
Thanks!
// annotation definition:
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface ParameterPriority {
      int rank();
//class A
Public class A {
@ ParameterPriority (rank=1)
    private String name;
@ ParameterPriority (rank=2)
    private int age;
//class B
Public class B extends A {
@ ParameterPriority (rank=3)
    private boolean isFemale;
//class C
Public class C extends A {
@ ParameterPriority (rank=3)
    private Boolean isStudent;
}

I don't thik you can achieve that on fields (though you should confirm with someone more knowledgeable) because fields cannot be overriden. A sensible workaround would be to annotate field getters rather than the fields themselves: when you override a method, you have the opportunity override its annotations. Another side advantage is that you annotate public things so they will be visible in the javadoc for instance.
Btw, if you rename your annotation method from "rank" to "value", you're allowed to omit the method name:
// annotation definition:
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface ParameterPriority {
      int value();
//class A
public class A {
    private String name;
    private int age;
    @ParameterPriority(5)
    public String getName() { return name; }
    @ParameterPriority(10)
    public int getAge() { return age; }
public class B extends A {
    @Override
    @ParameterPriority(2)
    public int getAge() { return super.getAge(); }
    // instanceOfA.getMethod("getAge").getAnnotation(ParameterPriority.class).value() == 10
    // instanceOfC.getMethod("getAge").getAnnotation(ParameterPriority.class).value() == 2

Similar Messages

  • Java inherited annotations

    Dear colleagues.
    There is some inconvenience concerning using of java annotations. I annotated some interfaces and methods within them. Then I made some derived interfaces and classes and tried to get my annotations here. Unfortunately annotations whose had been made for base classes were inaccessible from derived classes. It was very critical for me because I used some automated wrappers over my classes and couldn�t add annotations manually. Anyway as a result the library was elaborated that helps to solve inheritance task.
    The annotations being inherited are of classes, interfaces, or their methods. It uses the consistent inheritance model: inheritance proceeds only if the same annotation is not present on the same element (class, interface or method) within superclasses or superinterfaces. Annotations can be overridden within descendants. The library is open-source and free and can be downloaded from here:
    http://www.fusionsoft-online.com/annotation.php.
    Will be great to hear your opinion here�
    Best Regards,
    Michael.

    Dear colleagues.
    There is some inconvenience concerning using of java
    annotations. I annotated some interfaces and methods
    within them. Then I made some derived interfaces and
    classes and tried to get my annotations here.
    Unfortunately annotations whose had been made for
    base classes were inaccessible from derived classes.Your document's assertions that the platform does not support inheriting annotations are false. Indeed, the @Inherited annotation, included as part of JSR 175, is meant exactly for that purpose:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/Inherited.html
    (This only allows inheritance along the superclass chain, not interfaces.)

  • Overriding JAXB annotations from parent class

    Helllo everyone, I'm cross posting this here because I origanally asked in the from forum. My apologies...
    I'm attempting to override a JAXB annotation. Internally, we use the field. Externally, we do not want the field to appear as it is an Internal only identifier. I have a class and a subclass. MemberPK is the internal version we use on our internal webservices, and ExternalMemberPK is the one we want to serialize externally.
    When I look at the generated WSDL below, customerID still appears. THANK you, for any help, even if it's just a guess, it could very well push me in the correct direction. I'm using Apache CXF 2.3.1, Sun Java 6 latest on Glassfish latest. Suggestions welcome on 'a better way' to do this as well. Thanks!
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class MemberPK implements Serializable {
    private static final long serialVersionUID = 5L;
    private Integer customerId;
    private String customerName;
    ...other fields
    * @return the customerId
    public Integer getCustomerId() {
    return customerId;
    * @param customerId
    * the customerId to set
    public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class ExternalMemberPK extends MemberPK {
    private static final long serialVersionUID = 5L;
    * {@inheritDoc}
    @Override
    @XmlTransient
    public Integer getCustomerId() {
    return customerId;
    }

    Helllo everyone, I'm cross posting this here because I origanally asked in the from forum. My apologies...
    I'm attempting to override a JAXB annotation. Internally, we use the field. Externally, we do not want the field to appear as it is an Internal only identifier. I have a class and a subclass. MemberPK is the internal version we use on our internal webservices, and ExternalMemberPK is the one we want to serialize externally.
    When I look at the generated WSDL below, customerID still appears. THANK you, for any help, even if it's just a guess, it could very well push me in the correct direction. I'm using Apache CXF 2.3.1, Sun Java 6 latest on Glassfish latest. Suggestions welcome on 'a better way' to do this as well. Thanks!
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class MemberPK implements Serializable {
    private static final long serialVersionUID = 5L;
    private Integer customerId;
    private String customerName;
    ...other fields
    * @return the customerId
    public Integer getCustomerId() {
    return customerId;
    * @param customerId
    * the customerId to set
    public void setCustomerId(Integer customerId) {
    this.customerId = customerId;
    @XmlType(propOrder = {})
    @XmlAccessorType(XmlAccessType.PROPERTY)
    public class ExternalMemberPK extends MemberPK {
    private static final long serialVersionUID = 5L;
    * {@inheritDoc}
    @Override
    @XmlTransient
    public Integer getCustomerId() {
    return customerId;
    }

  • Overriding Inherited methods

    why cant we override the inherited methods with more secure access modifier (private)..... while if we do the apposite ie override with more non secure access modifiers , java is able to distinguish them and call the appropriate method or pop up the syntax error.. i am not able to understand the concept ... if any one could give a practical example it would helpful to me to understand...

    rajeshrocks25 wrote:
    Hey, correct me i am wrong.
    When we inherit Java loads all the members of the super class and we override or hide them then it simply ignores the superclass members ri8???
    thats what happening in the above code?I strongly suggest rereading the tutorial for Polymorphism or searching Google for alternative explanations for "Java Polymorphism", it doesn't sound like the concept has fully sunk in yet. As for a direct answer, at the bottom of the polymorphism tutorial I linked earlier they mention:
    The Java virtual machine (JVM) calls the appropriate method for the object that is referred to in each variable. It does not call the method that is defined by the variable's type. This behavior is referred to as virtual method invocation and demonstrates an aspect of the important polymorphism features in the Java language.To add, if the object being referred to does not contain the appropriate method, then the JVM will look for an appropriate method in the superclass, and the superclass of the superclass until the appropriate method is found.
    Also to clarify your confusion earlier, if a subclass A extends a class B, then A is considered a B so there is no use in casting A to B. In a more practical sense, imagine a [Boy] extending a [Man]. The [Boy] is of course a [Boy] because that is what we have defined him as. But the [Boy] is also a [Man] because he extends the [Man]. Therefore casting a [Boy] into a [Man] is pointless, because he already is indeed a [Man], just a subclass in the form of a [Boy].
    Furthermore if we declare a [Man] and instantiate him with a [Boy] then invoking a method talk(), [Boy] is inspected for the appropriate method talk(), if it has not been overridden then the JVM will look in [Man] and calls the appropriate method. Alternatively if we declare a [Man] and instantiate him as a [Man] then invoking the method talk(), [Man] is inspected for the appropriate method. It might also be of worth to note the instantiated [Man] cannot be cast into a [Boy], because a [Boy] is a subclass of [Man] and may contain properties or methods undefined by [Man].
    Mel

  • How to override Quicktime annotations for videos?

    I have some videos in .avi format and use reference files (generated by Movie2iTunes) to organize them within iTunes 7.5 and thus Front Row.
    Some of the source files have Title annotations which are wrong, but I cannot change them within iTunes. After any change to the name of the file, iTunes will revert to whatever is in the annotation.
    Is there a way to force iTunes to honor my edits (without re-exporting several gigabytes of video)?
    I know earlier versions of iTunes respected my edits to the name of the files in question, so it is a new bug.

    Hopefully bumping after a week isn't rude.

  • How to override validateEmail annotation in Netui

    I want to customize/add my code to ValidatEmail annotation in Netui, just wondering is there any way?

    sorry, wrong Beehive forum. This forum is about Oracle Beehive, Not Apache Beehive.

  • Class.this.method overriding inheritance trying to understand

    Hi I saw a piece of code that calls MyClass.this.aFunctionOverriddenByMeThatIsInMySuperClass ()
    Im just looking for some clarity on how this works what function this actually calls and why someone would write code in this manner.
    I have created a simpler version below
    2 class A and B and there basic functionality is described in each
    class A {
    public A (){};
    public int func1 () { return 1; }
    class B extends A {
    public B (){};
    public int func1() { return 0; } //note this returns 0 where A.func1 = 1
    public int myFunc() { return B.this.func1(); }
    //public int myOtherFunc() { return A.this.func1(); } //NOT LEGAL wont compile
    B.java:5: not an enclosing class: A //pardon the stupidity but what is an enclosing class??
    public int myOtherFunc() { return A.this.func1(); }
    class D extends B {
    public D (){};
    public int func1(){ return 4; }
    class C
    public static void main (String [] args)
    A a = new A();
    B b = new B();
    D d = new D();
    System.out.println(a.func1()); //prints 1
    System.out.println(b.func1()); //prints 0
    System.out.println(b.myFunc()); //prints 0
    System.out.println(d.myFunc()); //prints 4
    I guess my assumption is that using MyClass.this.someOverriddenFunction allows the subclass to have more control ??
    any thought or comment would be much appreciated.
    thanks

    Do you know what inner classes are? Inner classes are classes that are defined within another class. If an inner class is not declared as static, it needs an instance of the class it is defined within to exist, this is the enclosing class. MyClass.this can be used so that the inner class can explicitly invoke methods on it's enclosing instance

  • A question about inheritance and overwriting

    Hello,
    My question is a bit complicated, so let's first explain the situation with a little pseudo code:
    class A {...}
    class B extends A{...}
    class C extends B {...}
    class D extends C {...}
    class E extends B {...}
    class F {
      ArrayList objects; // contains only objects of classes A to E
      void updateObjects() {
        for(int i = 0; i < objects.size(); i++)
          A object = (A) objects.get(i); // A as superclass
         update(A);
      void update(A object) { ... }
      void update(B object) { ... }
      void update(D object) { ... }
    }My question now:
    For all objects in the objects list the update(? object) method is called. Is it now called with parameter class A each time because the object was casted to A before, or is Java looking for the best fitting routine depending on the objects real class?
    Regards,
    Kai

    Why extends is evil
    Improve your code by replacing concrete base classes with interfaces
    Summary
    Most good designers avoid implementation inheritance (the extends relationship) like the plague. As much as 80 percent of your code should be written entirely in terms of interfaces, not concrete base classes. The Gang of Four Design Patterns book, in fact, is largely about how to replace implementation inheritance with interface inheritance. This article describes why designers have such odd beliefs. (2,300 words; August 1, 2003)
    By Allen Holub
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html
    Reveal the magic behind subtype polymorphism
    Behold polymorphism from a type-oriented point of view
    http://www.javaworld.com/javaworld/jw-04-2001/jw-0413-polymorph_p.html
    Summary
    Java developers all too often associate the term polymorphism with an object's ability to magically execute correct method behavior at appropriate points in a program. That behavior is usually associated with overriding inherited class method implementations. However, a careful examination of polymorphism demystifies the magic and reveals that polymorphic behavior is best understood in terms of type, rather than as dependent on overriding implementation inheritance. That understanding allows developers to fully take advantage of polymorphism. (3,600 words) By Wm. Paul Rogers
    multiple inheritance and interfaces
    http://www.javaworld.com/javaqa/2002-07/02-qa-0719-multinheritance.html
    http://java.sun.com/docs/books/tutorial/java/interpack/interfaceDef.html
    http://www.artima.com/intv/abcs.html
    http://www.artima.com/designtechniques/interfaces.html
    http://www.javaworld.com/javaqa/2001-03/02-qa-0323-diamond_p.html
    http://csis.pace.edu/~bergin/patterns/multipleinheritance.html
    http://www.cs.rice.edu/~cork/teachjava/2002/notes/current/node48.html
    http://www.cyberdyne-object-sys.com/oofaq2/DynInh.htm
    http://www.gotw.ca/gotw/037.htm
    http://www.javajunkies.org/index.pl?lastnode_id=2826&node_id=2842
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=001588
    http://pbl.cc.gatech.edu/cs170/75
    Downcasting and run-time
    http://www.codeguru.com/java/tij/tij0083.shtml
    type identification
    Since you lose the specific type information via an upcast (moving up the inheritance hierarchy), it makes sense that to retrieve the type information ? that is, to move back down the inheritance hierarchy ? you use a downcast. However, you know an upcast is always safe; the base class cannot have a bigger interface than the derived class, therefore every message you send through the base class interface is guaranteed to be accepted. But with a downcast, you don?t really know that a shape (for example) is actually a circle. It could instead be a triangle or square or some other type.
    To solve this problem there must be some way to guarantee that a downcast is correct, so you won?t accidentally cast to the wrong type and then send a message that the object can?t accept. This would be quite unsafe.
    In some languages (like C++) you must perform a special operation in order to get a type-safe downcast, but in Java every cast is checked! So even though it looks like you?re just performing an ordinary parenthesized cast, at run time this cast is checked to ensure that it is in fact the type you think it is. If it isn?t, you get a ClassCastException. This act of checking types at run time is called run-time type identification (RTTI). The following example demonstrates the behavior of RTTI:
    //: RTTI.java
    // Downcasting & Run-Time Type
    // Identification (RTTI)
    import java.util.*;
    class Useful {
    public void f() {}
    public void g() {}
    class MoreUseful extends Useful {
    public void f() {}
    public void g() {}
    public void u() {}
    public void v() {}
    public void w() {}
    public class RTTI {
    public static void main(String[] args) {
    Useful[] x = {
    new Useful(),
    new MoreUseful()
    x[0].f();
    x[1].g();
    // Compile-time: method not found in Useful:
    //! x[1].u();
    ((MoreUseful)x[1]).u(); // Downcast/RTTI
    ((MoreUseful)x[0]).u(); // Exception thrown
    } ///:~
    As in the diagram, MoreUseful extends the interface of Useful. But since it?s inherited, it can also be upcast to a Useful. You can see this happening in the initialization of the array x in main( ). Since both objects in the array are of class Useful, you can send the f( ) and g( ) methods to both, and if you try to call u( ) (which exists only in MoreUseful) you?ll get a compile-time error message.
    If you want to access the extended interface of a MoreUseful object, you can try to downcast. If it?s the correct type, it will be successful. Otherwise, you?ll get a ClassCastException. You don?t need to write any special code for this exception, since it indicates a programmer error that could happen anywhere in a program.
    There?s more to RTTI than a simple cast. For example, there?s a way to see what type you?re dealing with before you try to downcast it. All of Chapter 11 is devoted to the study of different aspects of Java run-time type identification.
    One common principle used to determine when inheritence is being applied correctly is the Liskov Substitution Principle (LSP). This states that an instance of a subclass should be substitutible for an instance of the base class in all circumstances. If not, then it is generally inappropriate to use inheritence - or at least not without properly re-distributing responsibilities across your classes.
    Another common mistake with inheritence are definitions like Employee and Customer as subclasses of People (or whatever). In these cases, it is generally better to employ the Party-Roll pattern where a Person and an Organization or types of Party and a party can be associated with other entities via separate Role classes of which Employee and Customer are two examples.

  • A prefix can be included in the EJB JNDI name dynamically?

    In the Stateless annotation, we can specify the mappedName attribute to the EJB JNDI name bind.
    Can we specify a prefix to the mappedName separately?
    For example: We have this:
    @Stateless(mappedName="myEJB")And don't want to do this:
    @Stateless(mappedName="prefix/myEJB")We want to include the prefix in another place in the code dynamically.
    Can we do that??

    jtahlborn wrote:
    eudesf wrote:
    Hello! Thanks for reply!
    As I can't configure programatically, there is any way to configure in an application descriptor, or in another place of the application server?
    The idea is to publish two applications that use the same EJB classes, but in different JNDI namespaces, because we don't want to share the resources. Otherwise, it will result in JNDI name conflicts. The applications works in different contexts and we want to reuse the existing EJB definitions.
    Any suggestion?yes you can do this. ejb 3.0 keeps the features from 2.1, namely all the xml based configuration (although it is now optional). and, the annotations are always overriden by the xml configuration. thus, you can create different deployments with different the same compiled class files. you just need to override the annotation configuration with xml configuration (via ejb-jar.xml or whatever).Yes, we can do that. I've tested here, and it works. But, can we do better?
    The configuration via XML implies maintenance, and it's not good, because we have so many EJBs to maintain.
    And there is another problem... The EJB classes are in JARs, and these JARs are shared across the applications.
    Pretend that you have to maintain two versions of each EJB JAR. One with XML configured and other without. If we change one, the another must be changed too. How can it be productive?
    I have seen some EJB implementations that are more flexible with JNDI naming.
    See:
    - [http://openejb.apache.org/jndi-names.html|http://openejb.apache.org/jndi-names.html]
    - [http://fixunix.com/weblogic/221782-dynamic-jndi-name-weblogic-ejb-jar-xml.html|http://fixunix.com/weblogic/221782-dynamic-jndi-name-weblogic-ejb-jar-xml.html]
    Does it have a better solution in Glassfish?

  • Action Script execution

    Hi All,
    I have come across situation, here are the details
    User creates an action script but he/she is not aware of signature of the properties like "Derived overridable", Inherited and Default values, user creates an action script based on input file.
    but here bottle neck moment is while executing action script, it has to skip rows in action script which has value equal to Derived value, Inherited value or default value.
    Your advice is highly appreciable
    Regards,
    Phani.

    Sainath,
    Referring admin guide as mentioned by Craig is good option.
    Let me give you few steps that I did in one of my projects.
    Open command prompt and navigate to the path "C:\Oracle\Middleware\EPMSystem11R1\products\DataRelationshipManagement\client\batch-client".. here you can see many see other utilities as well.
    drm-batch-client-credentials.exe is the one used to encrypt the userid and password.
    open this in command prompt and then choose the application to which you want to encrypt the password.
    then remove userid and password from batch script then run it... it does what you want

  • Class final project need help

    I have this final project due Monday for my java class. I'm having some trouble with this zoom slider which gives me 2 errors about "cannot find symbol". I've tried just about eveything i can think of and i cant come up with the solution... Here is my code:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    public class MenuExp extends JFrame implements MouseMotionListener,MouseListener,ActionListener
    /* creates the file menus and submenus */
         JMenu fileMenu = new JMenu("File");
        JMenu plotMenu = new JMenu("Plotting");
        JMenu helpMenu = new JMenu("Help");
        JMenuItem loadAction = new JMenuItem("Load");
        JMenuItem saveAction = new JMenuItem("Save");
        JMenuItem quitAction = new JMenuItem("Quit");
        JMenuItem colorAction = new JMenuItem("Segment Colors");
        JMenuItem helpAction = new JMenuItem("Instructions");
        JButton button;
         Cursor previousCursor = new Cursor(Cursor.DEFAULT_CURSOR);
        JLabel cLabel;
        JPanel cPanel;
        private String filename = null;  // set by "Open" or "Save As"
        double scale = 1.0;
        public MenuExp(File f)
            setTitle("PlotVac");
            Container pane = getContentPane();
            ImageIcon chartImage = new ImageIcon(f.getName());
              ChartDisplay chartLabel = new ChartDisplay(chartImage);
              JScrollPane scpane = new JScrollPane(chartLabel);
              pane.add(scpane, BorderLayout.CENTER);
              chartLabel.addMouseListener(this);  //change cursor
              chartLabel.addMouseMotionListener(this); //handle mouse movement
              JPanel cPanel = new JPanel();
              cLabel= new JLabel("cursor outside chart");
              cPanel.add(cLabel);
              pane.add(cPanel, BorderLayout.NORTH);
              button = new JButton("Clear Route");
            button.setAlignmentX(Component.LEFT_ALIGNMENT);
            button.setFont(new Font("serif", Font.PLAIN, 14));
              cPanel.add(button);
              getContentPane().add(getSlider(), "Last");
    /* Creates a menubar for a JFrame */
            JMenuBar menuBar = new JMenuBar();
    /* Add the menubar to the frame */
            setJMenuBar(menuBar);
    /* Define and add three drop down menu to the menubar */
            menuBar.add(fileMenu);
            menuBar.add(plotMenu);
            menuBar.add(helpMenu);
    /* Create and add simple menu item to the drop down menu */
            fileMenu.add(loadAction);
            fileMenu.add(saveAction);
            fileMenu.addSeparator();
            fileMenu.add(quitAction);
            plotMenu.add(colorAction);
            helpMenu.add(helpAction);
             loadAction.addActionListener(this);
             saveAction.addActionListener(this);
             quitAction.addActionListener(this);
        private JSlider getSlider()
            JSlider slider = new JSlider(25, 200, 100);
            slider.setMinorTickSpacing(5);
            slider.setMajorTickSpacing(25);
            slider.setPaintTicks(true);
            slider.setPaintLabels(true);
            slider.addChangeListener(new ChangeListener()
                public void stateChanged(ChangeEvent e)
                     int value = ((JSlider)e.getSource()).getValue();
                     cPanel.zoom(value/100.0);
            return slider;
        private void zoom(double scale)
            this.scale = scale;
            cPanel.setToScale(scale, scale);
            repaint();
    /* Handle menu events. */
           public void actionPerformed(ActionEvent e)
              if (e.getSource() == loadAction)
                   loadFile();
             else if (e.getSource() == saveAction)
                    saveFile(filename);
             else if (e.getSource() == quitAction)
                   System.exit(0);
    /** Prompt user to enter filename and load file.  Allow user to cancel. */
    /* If file is not found, pop up an error and leave screen contents
    /* and filename unchanged. */
           private void loadFile()
             JFileChooser fc = new JFileChooser();
             String name = null;
             if (fc.showOpenDialog(null) != JFileChooser.CANCEL_OPTION)
                    name = fc.getSelectedFile().getAbsolutePath();
             else
                    return;  // user cancelled
             try
                    Scanner in = new Scanner(new File(name));  // might fail
                    filename = name;
                    while (in.hasNext())
                    in.close();
             catch (FileNotFoundException e)
                    JOptionPane.showMessageDialog(null, "File not found: " + name,
                     "Error", JOptionPane.ERROR_MESSAGE);
    /* Save named file.  If name is null, prompt user and assign to filename.
    /* Allow user to cancel, leaving filename null.  Tell user if save is
    /* successful. */
           private void saveFile(String name)
             if (name == null)
                    JFileChooser fc = new JFileChooser();
                    if (fc.showSaveDialog(null) != JFileChooser.CANCEL_OPTION)
                      name = fc.getSelectedFile().getAbsolutePath();
             if (name != null)
                  try
                      Formatter out = new Formatter(new File(name));  // might fail
                        filename = name;
                      out.close();
                      JOptionPane.showMessageDialog(null, "Saved to " + filename,
                        "Save File", JOptionPane.PLAIN_MESSAGE);
                    catch (FileNotFoundException e)
                      JOptionPane.showMessageDialog(null, "Cannot write to file: " + name,
                       "Error", JOptionPane.ERROR_MESSAGE);
    /* implement MouseMotionListener methods */     
         public void mouseDragged(MouseEvent arg0)
         public void mouseMoved(MouseEvent arg0)
              int x = arg0.getX();
              int y = arg0.getY();
              cLabel.setText("X pixel coordiate: " + x + "     Y pixel coordinate: " + y);
    /*      implement MouseListener methods */
         public void mouseClicked(MouseEvent arg0)
         public void mouseEntered(MouseEvent arg0)
             previousCursor = getCursor();
             setCursor(new Cursor (Cursor.CROSSHAIR_CURSOR) );
         public void mouseExited(MouseEvent arg0)
             setCursor(previousCursor);
             cLabel.setText("cursor outside chart");
         public void mousePressed(MouseEvent arg0)
         public void mouseReleased(MouseEvent arg0)
    /* main method to execute demo */          
        public static void main(String[] args)
             File chart = new File("teritory-map.gif");
            MenuExp me = new MenuExp(chart);
            me.setSize(1000,1000);
            me.setLocationRelativeTo(null);
            me.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            me.setVisible(true);
    }and this is the other part:
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.geom.Line2D;
    import javax.swing.Icon;
    import javax.swing.JLabel;
    public class ChartDisplay extends JLabel
    /* line at 45 degrees from horizontal */
         private int x1=884, y1=290, x2=1084, y2=490;
    /* horizontal line - x3 same as x2 */
         private int x3=1084, y3=490, x4=1384, y4=490;
         public ChartDisplay(Icon arg0)
              super(arg0);
    /* This overrides inherited method to draw on image */
         protected void paintComponent(Graphics arg0)
              super.paintComponent(arg0);
    /* Utility method to draw a "dot" at line ends */
         private void drawDot(Graphics g, Color c, int xDot, int yDot, int sizeDot)
              Color previousColor = g.getColor();
              g.setColor(c);
                g.fillOval(xDot-(sizeDot/2), yDot-(sizeDot/2), sizeDot, sizeDot);
                g.setColor(previousColor);   
    /* Utility method to draw a wider line */
         private void drawLine(Graphics g, Color c, int lineWidth, int xStart, int yStart, int xEnd, int yEnd)
              Color previousColor = g.getColor(); // save previous color
              Graphics2D g2 = (Graphics2D) g;  // access 2D properties
                g2.setPaint(c);  // use color provided as parameter
             g2.setStroke(new BasicStroke(lineWidth)); // line width
             g.setColor(previousColor);    // restore previous color
    }I've basically used the structure of other programs and incorporated them into my design. If anyone knows how i can fix the errors please let me know. The errors are found in line 91 and 100 which is where the zoom slider is occuring.
    **NOTE** the program isnt fully functional in the sense that there are buttons and tabs etc.. that are missing action listeners and things like that.
    Thanks for the help
    Edited by: gonzale3 on Apr 17, 2008 6:55 PM

    gonzale3 wrote:
    The code was on the forums as the person who posted it was using it as an example in a program he used... i didnt borrow the entire code im just using the way he did the zoom method and added it into my program. I wasnt aware that it was used in the JPanel class. C'mon, it's your program. If you don't know what you are doing in this program, then you shouldn't be using it.
    That is why im asking if someone can show me the right way to implement a zoom slider into my program or maybe give me an example where its used.What the fuck is a zoom slider???
    Edited by: Encephalopathic on Apr 17, 2008 8:00 PM

  • Override JNDI names in persistence.xml and @resource annotation

    I have a Java EE 7 application that I am developing for use with both GlassFish and WildFly, but I have discovered that both application servers use a slightly different format for specifying JNDI names.
    In GlassFish the persistence.xml file references the data source jdbc/myDataSouce, but in WildFly the data source needs to be java:/jdbc/myDataSource.The same is also true for classes that are annotated with @Resource. In GlassFish the annotation for a class using JavaMail would be @Resource(name = "mail/myMailSession"), but to deploy onto WildFly this would need to be @Resource(name = "java:mail/myMailSession").
    The only solution I've got at present is using Maven to create two different releases of the EAR file, with one EAR file containing a persistence.xml file with the data source jdbc/myDataSouce for use with GlassFish, and the second EAR file containing a persistence.xml file with the data source java:/jdbc/myDataSource for use with WildFly. Unfortunately, I haven't found a solution for the @Resource annotation.
    I've taken a look at the documentation for glassfish-application.xml and glassfish-ejb-jar.xml and have tried using resource-ref to override the JNDI names but the application fails to deploy due to an error in the name.
    My question is does GlassFish provide any capability to override the JNDI names specified in the persistence.xml file and classes with the @resource annotation?
    Many Thanks
    Paul

    Have you been able to solve this? I'm attempting to understand what Web Server 7 can do with regard to Java Persistence and what elements of it require Glassfish.
    I've also spent great amounts of time in WS6.1 trying to figure out why a JNDI resource couldn't be found. The rules of thumb I've learned are:
    - Try dropping the *'java:/comp/env/* prefix; just use jdbc/pact part
    - Make sure all referrences (in web.xml and sun-web.xml) are identical with regard to that name.
    I'm hoping you're not still dealing with this (it's been two months!) but if anybody else stumbles on this, maybe it'll help them.
    Dave

  • Formatting annotations (overriding default toString used by javadoc)

    Taglets can be created and registered to handle tags in javadoc comments.
    Is there an equivalent way of formatting annotations? From what I can see, AnnotationDescImpl handles the format for annotations, but I was hoping there was some way of creating a taglet that will handle annotations.

    The JNDI name is declared in the Grid Archive(GAR) deployment descriptor file ([YOUR_GAR_HOME]/META_INF/coherence-application.xml)
    So, when  you provision a new  Cache Configuration (in WLS Administration Console)  with JNDI Name "YourJNDINameGar" the entry in the coherence-application should it be:
    <cache-configuration-ref override-property = "cache-config/YourJNDINameGar">META-INF/example-cache-config.xml</cache-configuration-ref> 
    - Don't forget to double check that the targets are the right ones
    - Search for an entry log at the Managed Server log file (INFO level) announcing that is loading the right xml cache configuration file
    - Review the JNDI tree in [Your Managed Server]>Configuration>General> "View JNDI Tree" link
    Enjoy!!

  • The annotation symbol inheritance is not supported.

    Hi techies...
    I am using JDK 1.5.0_12
    And Applications server GlassFish V2 UR2
    and The application is related to SEAM using seam2.0.1 Sp1
    and in this at the time of building there was no errors at the time of deploying to server only this errors are rising...
    And no application is there just a simple generation from DB using seam An Welcome page only...
    I hope its a configuration issue..and I am new for GlassFish...If any body gies reply or solution..its a great help to go through further
    Thanks in advance..
    Venkat
    this is the console log...
    [#|2008-07-08T12:51:41.872+0530|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=19;_ThreadName=Thread-31;_RequestID=371f6e2a-11a8-45de-b180-9a0eafb8f865;|The annotation symbol inheritance is not supported.
    symbol: TYPE
    location: class org.jboss.seam.async.TimerServiceDispatcher
    |#]
    [#|2008-07-08T12:51:42.137+0530|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=19;_ThreadName=Thread-31;|deployed with moduleid = V|#]
    [#|2008-07-08T12:51:42.762+0530|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;/V;|Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/V'|#]
    [#|2008-07-08T12:51:43.262+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=d46b1167-cd74-43f2-9e4e-a951518e0c38;|WebModule[/V]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         at org.ajax4jsf.application.DebugLifecycleFactory.<clinit>(DebugLifecycleFactory.java:39)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
         at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:805)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
         at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    |#]
    [#|2008-07-08T12:51:43.262+0530|INFO|sun-appserver9.1|javax.servlet.ServletContextListener|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;|Welcome to Seam 2.0.2.SP1|#]
    [#|2008-07-08T12:51:43.294+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=d46b1167-cd74-43f2-9e4e-a951518e0c38;|WebModule[/V]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
    java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile
         at org.jboss.seam.deployment.StandardDeploymentStrategy.<init>(StandardDeploymentStrategy.java:28)
         at org.jboss.seam.init.Initialization.create(Initialization.java:101)
         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
         at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    |#]
    [#|2008-07-08T12:51:43.309+0530|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=d46b1167-cd74-43f2-9e4e-a951518e0c38;|PWC1306: Startup of context /V failed due to previous errors|#]
    [#|2008-07-08T12:51:43.340+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=d46b1167-cd74-43f2-9e4e-a951518e0c38;|WebModule[/V]PWC1277: Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener
    java.lang.NoClassDefFoundError: javassist/util/proxy/MethodHandler
         at org.jboss.seam.core.Events.instance(Events.java:156)
         at org.jboss.seam.core.Events.exists(Events.java:151)
         at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:236)
         at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:56)
         at org.jboss.seam.contexts.ServletLifecycle.endApplication(ServletLifecycle.java:118)
         at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:39)
         at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4567)
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5355)
         at com.sun.enterprise.web.WebModule.stop(WebModule.java:357)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5211)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
         at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    |#]

    I had the same error too. Any solution on this?

  • [svn] 4069: Fix for - an inherited read-write property is reported as write-only if an overriding setter is present and getter is absent .

    Revision: 4069
    Author: [email protected]
    Date: 2008-11-11 12:24:53 -0800 (Tue, 11 Nov 2008)
    Log Message:
    Fix for - an inherited read-write property is reported as write-only if an overriding setter is present and getter is absent.
    Constructor for mxml files will now have the default comment "Constructor"
    Also fix for asdoc help details doesn;t show description
    QE Notes: Baselines need to be updated.
    Doc Notes: None
    Bugs: SDK-16091, SDK-17863
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16091
    http://bugs.adobe.com/jira/browse/SDK-17863
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsClass.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties

    Well, running a Windows disk utility on a Mac drive ought to muck things up pretty well. I hope you have backups. If not I suggest you try to backup your files. Then do the following:
    Extended Hard Drive Preparation
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Upon formatting completing quit DU to return to the installer. Install OS X. Afterwards you can restore your personal data files and reinstall your third-party software.
    In the future never attempt to use any Windows disk utilities to fix or diagnose a Mac formatted drive.

Maybe you are looking for

  • 2lis_02_item

    All,     My customer runs  trasaction s_alr_87012620 in R3 and looks at how much they have spent. I have source data 2lis_02_itm which I report on in BW. The figures are not even closed. My question is what is a relationship/s if any between the R3 t

  • Safari Mountain Lion text editing glitch

    Has anyone else seen problems with the latest Safari on the latest Mountain Lion where text that is being edited causes flashing? I found a YouTube video that demonstrates the problem: http://www.youtube.com/watch?v=aYkqXkJXod4 This is very similar t

  • Generating XML signature with prefix dsig ?

    Hi everyone, I'm facing a problem generating a signature of XML document. I'm using Jwsdp and the apache toolkit. So far, I can generate the signature of this form : <Signature> <SignedInfo> ..... I would like to generate the signature like this : <d

  • Organizing Photos, organizing Photos

    Can somebody help me figure out iPad 2 "Photos?"  I now have several hundred impages on the iPad, either imported from iPhoto (OS), or imported from my camera SD card directly into iPad. As good as iPhoto is, iPad "Photo" is just as confusing.  This

  • Old impulse responses

    hey all, I just tryed to open an old project that I did in logic 6... I have 3 space desigers in the track. It seems that logic can't find my space designer impulse responses. I'm assuming that it's because when I installed logic 7, the logic 6 IRs d