HELP!! ClassCastException with custom module classloader hierarchy and redeployment

Hi,
I am defining custom module classloader hierarchy to avoid redeploying of the
entire application mainly because we have so many EJBs and it takes a long time
to deploy the entire app. I deploy my app using the exploded directory, add a
new method to an EJB in my dal.jar, redeploy, run my unittest and I get ClassCastException.
I am using weblogic.Deployer utility to reploy my module using "-targets dal.jar@accsserver"
argument. I even tried undeploying that module and redeploy again with no luck.
here is weblogic-application.xml definition of the custom class loader
<classloader-structure>
<module-ref>
     <module-uri>floghmi.war</module-uri>
     </module-ref>
<module-ref>
     <module-uri>cts.jar</module-uri>
     </module-ref>
<module-ref>
     <module-uri>fdbs.jar</module-uri>
     </module-ref>
<classloader-structure>
     <module-ref>
          <module-uri>dml.jar</module-uri>
     </module-ref>
<classloader-structure>
     <module-ref>
     <module-uri>dal.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</classloader-structure>
thanks,
Nasrin

Rob,
regarding your question on redeploying the whole app without the classloader
structure, yes, that works fine. If I change a class and redeploy the whole app,
things are ok. However, when I speocify the classloader structure, and try to
redeploy the dal.jar, I get ClassClasException.
You are right about dml.jar being in a separate classloader. I have changed my
structure after I posted my question to load dml.jar from the application classloader.
So Rob, is there a bug in Weblogic 8.1 that causes this exception?
please let me know, I am anxiously waiting your response.
thanks,
Nasrin
Rob Woollen <[email protected]> wrote:
>
>
Nasrin Azordegan wrote:
Rob,
if I remove my classloader structure from weblogic-application.xml,I get an
error during redeployment, saying "You must include all of<list ofmy module names
here> in your files list to modify <dal.jar>. Yes, the server enforces constraints on partial redeployments. You must
deploy all the modules in a given classloader and any modules in child
classloaders.
Just to make sure, if you initially deploy your app, or redeploy the
whole thing, it works fine without the classloader-structure, right?
The problem I am trying to solve is to minimize our deployment time.Our application
has over 700 CMP 2.0 entity beans and 200 session beans. Our applicationdeployment
follows the J2EE layer architecture. The data mapping layer which consistof 700
entity beans are located in dml.jar. The data access layer which consistof 200
session beans are located in dal.jar. We create our ear with thesetwo jar files
plus some other framework jars and deploy on bea weblogic 8.1 SP2 andthat takes
about an hour. I need to be able to modify a session bean, i.e. changethe implementation
of a session bean or add a new method to a session bean interface andredeploy
only data access layer, the dal.jar, not the entity beans. This explainswhy you
see dml.jar in a classloader with a child classloader that loads dal.jar.
I included the ClassCastException from weblogic server console below.What is
happening is that I have a session bean with 6 methods that just doesa println.
I deploy my session bean, ExerciseSessionBeanFactory, and run my unittest that
invokes test1 through test6 methods. I modify my bean to add "test7"method and
redeply dal.jar successfully. I run my unit test that invokes test1through test7
methods and then I get a ClassCastException.
I hope this helps. Please let me know if you need more details.If you push dml.jar into a subloader, that means you can change dml.jar
without touching anything in the parent loader. However, it also means
that you've isolated it's classes and other modules can't see them.
-- Rob
thanks,
Nasrin
in test method
in test2 method
in test3 method
in test4 method
in test5 method
in test6 method
<Apr 12, 2004 9:26:03 AM PDT> <Warning> <EJB> <BEA-010096> <The Message-Driven
EJB: SimTimeListener is unable to connect
to the JMS destination: cn=t.cms.cts.simTimeInfo. Connection failedafter 184
attempts. The MDB will attempt to reconne
ct every 10 seconds. This log message will repeat every 600 secondsuntil the
condition clears.>
<Apr 12, 2004 9:26:03 AM PDT> <Warning> <EJB> <BEA-010061> <The Message-Driven
EJB: SimTimeListener is unable to connect
to the JMS destination: cn=t.cms.cts.simTimeInfo. The Error was:
[EJB:011011]The Message-Driven EJB attempted to connect to the JMSdestination
with the JNDI name: cn=t.cms.cts.simTimeI
nfo. However, the object with the JNDI name: cn=t.cms.cts.simTimeInfois not a
JMS destination, or the destination found
was of the wrong type (Topic or Queue).>
in test method
in test2 method
in test3 method
in test4 method
in test5 method
in test6 method
<Apr 12, 2004 9:28:26 AM PDT> <Warning> <RMI> <BEA-080003> <RuntimeExceptionthrown
by rmi server: com.trs.cv.infr.istr.
sc.sim.factory.ejb.ExerciseSessionFactory_zhotso_EOImpl.test7()
java.lang.ClassCastException.
java.lang.ClassCastException
at com.trs.cv.infr.istr.sc.sim.factory.ejb.ExerciseSessionFactory_zhotso_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Rob Woollen <[email protected]> wrote:
You'll have to give me some more information on the ClassCastException.
Where does it happen? Print out the classnames and the
classloaders of the 2 objects.
Does everything work fine if you remove your classloader-structure?
-- Rob
Nasrin Azordegan wrote:
Hi,
I am defining custom module classloader hierarchy to avoid redeployingof the
entire application mainly because we have so many EJBs and it takesa long time
to deploy the entire app. I deploy my app using the exploded directory,add a
new method to an EJB in my dal.jar, redeploy, run my unittest and
I
get ClassCastException.
I am using weblogic.Deployer utility to reploy my module using "-targetsdal.jar@accsserver"
argument. I even tried undeploying that module and redeploy again
with
no luck.
here is weblogic-application.xml definition of the custom class loader
<classloader-structure>
<module-ref>
     <module-uri>floghmi.war</module-uri>
     </module-ref>
<module-ref>
     <module-uri>cts.jar</module-uri>
     </module-ref>
<module-ref>
     <module-uri>fdbs.jar</module-uri>
     </module-ref>
<classloader-structure>
     <module-ref>
          <module-uri>dml.jar</module-uri>
     </module-ref>
<classloader-structure>
     <module-ref>
     <module-uri>dal.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</classloader-structure>
thanks,
Nasrin

Similar Messages

  • Hello i can  not  i use my account on the applewill   store , i hope that yu help  me with a lot of thanks and wait reply to this massege

    hello i can not i use my account  on the apple store  , i hope  that yu will  help me  with  a  lot  of thanks and wait  reply to this message

    Go through the below link.
    http://support.apple.com/kb/ts2446
    If the above link doesn't helps then contact APple support and they will help you Enable your Apple Id from their End : http://support.apple.com/kb/he57

  • I live in South Africa and I am looking to get a mac book air to help me with all of my schoolwork and presentations. Are there any discounts that students can get and if so how much of a discount?

    I live in South Africa and I am looking to get a mac book air to help me with all of my schoolwork and presentations. Are there any discounts that students can get and if so how much of a discount?

    Hi, actually there is, but you have to inquire according to Apple.com/za website. Here is the statement:
    Student Discounts
    Students, staff and academic institutions are eligible for ongoing discounts on Apple products and solutions. Call 011 535 9080 for further information.

  • Can anyone help me with the commands to import and restore  backup from  another administrative server

    Dear all.
                         Can anyone help me with the commands to import and restore  backup from  another administrative server

    I tried, even with code tags it looks the same since the 2500 character limit is exceeded.
    Please post just the relevant parts inside tags as mentioned, and choose a descriptive subject line.
    I'm locking this thread.
    Thomas

  • Could anyone here help me with using WebDynpro as view, and Adweb service

    Could anyone here help me with using WebDynpro as view, and Adaptive web service  as model, I am getting the following error message:
    Exception on execution of web service with WSDL URL 'D:\temp\MI_SEARCH.wsdl' with operation 'MI_SEARCH' in interface 'MI_SEARCH'.

    Hi,
    Could you check if it is the Installed JREs in Preference Page -> Java points to the jdk path and not the JRE.
    Regards,
    Nidhi

  • Decl J2EE auth and auth with JAAS with custom module

    Hi Frank:
    I have posted another msg where I was trying the non-custom Login module with no luck. In the meantime, I tried the custom module and still having problem. When I click on dlmtest.jsp it brings up the inbuilt login module and not the custom one. My db_schema is "SECURITYTESTER" and pwd = "oracle"
    Hetre is my jazn-data.xml
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <jazn-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-data-10_0.xsd" filepath="" OC4J_INSTANCE_ID="">
    <jazn-loginconfig>
    <application>
    <name>DBLMTest</name>
    <login-modules>
    <login-module>
    <class>oracle.sample.dbloginmodule.DBProcLM.DBProcLoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>debug</name>
    <value>true</value>
    </option>
    <option>
    <name>jdbcDriver</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </option>
    <option>
    <name>application_realm</name>
    <value>Online Trainings</value>
    </option>
    <option>
    <name>plsql_procedure</name>
    <value>DBPROCLM.GET_USER_AUTHENTICATION</value>
    </option>
    <option>
    <name>db_schema</name>
    <value>SECURITYTESTER</value>
    </option>
    <option>
    <name>jdbcUrl</name>
    <value>jdbc:oracle:thin:@localhost:1521:xe</value>
    </option>
    <option>
    <name>db_schema_pw</name>
    <value>oracle</value>
    </option>
    <option>
    <name>log_level</name>
    <value>ALL</value>
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    </jazn-loginconfig>
    </jazn-data>
    orien-app is here
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
    <orion-application>
    <!--
    <jazn provider="XML"
    default-realm="jazn.com" location="./jazn-data.xml">
    <property name="role.mapping.dynamic" value="true"/>
    <property name="jaas.username.simple" value ="true" />
    </jazn>
    -->
    <jazn provider="XML" location="./jazn-data.xml">
    <property name="custom.loginmodule.provider" value="true"/>
    <property name="role.mapping.dynamic" value="true"/>
    </jazn>
    </orion-application>
    My application.xml
    has
    <?xml version = '1.0' standalone = 'yes'?>
    <orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd" autocreate-tables="true" default-data-source="jdbc/OracleDS" schema-major-version="10" schema-minor-version="0">
    <web-module id="defaultWebApp" path="../default-web-app"/>
    <library path="C:\jdevstudio10132/j2ee/home/lib/DBLoginModule.jar"/>
    So, why is it not bringing up the custom login module. And, I can't authenticate in this case as well.
    Thanks for your help (and on your help on the non-customized version of my post)

    Hi,
    most likely the reason is that the deployed application name is not the same name you provided when configuring the LoginModule (DBLMTest). Its documented in the paper that comes with the LogiNmodules i wrote
    Frank

  • Authorization Issue with Custom Pending Value Object and Anonymous Users

    Hi,
    I am just converting my demo from version 7.1 to 7.2. I am not doing upgrade. The demo uses a custom pending value object USER_REQUEST. The idea is that new employee goes to Java AS as anonymous user and enters her details and store where she will work. After submitting request there is an approval process using custom entry type USER_REQUEST. If the request is approved then IdM converts USER_REQUEST into MX_PERSON entry. This works nice in 7.1 but I am having problems with replicating this in 7.2. I created new UI task accessible by anonymous that creates new USER_REQUEST entry. I also assigned role idm.anonymous with UME action idm_anonymous to UME built in group Anonymous users.
    My problem is with the field STORE. This field is a reference field to another custom entry type STORE (this entry type will be used in context based assignment). Every new employee must selects a store where she will work. The problem is when user clicks on button "Select". Web dynpro terminates and returns authorization error. I also tested this with entry type MX_ROLE. I added attribute MXREF_MX_ROLE and same issue. So it seems that just assigning UME action idm_anonymous is not enough to list objects from identity store. I found a workaround for this issue. When I assign also UME action idm_authenticated to Anonymous users then it does not dump and I get a pop up window where I can search for store. It does not seem right to assign idm_authenticated to anonymous users.
    Another issue is with display task for entry type USER_REQUEST. I assigned a display task to entry STORE and I set that Anonymous have access to this task in Access control tab. I assigned default value to the field store. So when a user opens page she can see a hyper link to display already assigned store. When user clicks on this hyper link it opens a new pop up window and user must authenticate against Java AS. After successful authentication the display task for entry STORE is displayed. I would assume that anonymous user can display it without authentication.
    So to me it seems like authorization checks have been changed in 7.2 versions and are more strict for anonymous tasks. Hence my question is how can I implement my scenario. Am I missing some configuration or what's the proper solution to my two issues? I don't count assigning idm_authenticated to Anonymous users as a solution. This workaround does not solve my second issue.
    Thanks

    Some of the folks from Trondheim labs check, but rather infrequently.  There's another person who I guess is in consulting that also checks from time to time.
    Sorry I can't help you with your main question...
    Matt

  • Help needed with referencing single Excel cells and formatting resulting text

    In InDesign CS5 I am putting together a 20pp catalogue of about 200 products. The plan is to have the product information, SKU code, quantity etc fixed, but have the prices (there are two i.e. pack price and individual price) being linked to an Excel spreadsheet. This is so that the prices can be updated in the Excel file and the InDesign file will pull the new prices through. In case you are wondering why I don't pull the whole set of information through, this is because there are a lot of copywriting changes done to the information once it's in InDesign - it's only going to be the prices that will be updated.
    I am planning on having two single cell tables in their own text frame, duly formatted with cell style, table style and paragraph style for the two price variables. This I am then going to have to repeat 200 times making sure I link to the next row down in Excel. This is going to be a hideous task but I see know way of modifying the cell in InDesign to point it to the next row in Excel. That's my first problem.
    My second problem is this. In the Excel sheet, the prices are formatted as UK currency and are therefore like this...
    £2.00
    £0.40
    £1.43
    £9.99
    £0.99
    £0.09
    What I will require is once I import that data (and refresh the data via a newly saved Excel file) is that the prices end up like this...
    £2.00
    40p
    £1.43
    £9.99
    99p
    9p
    So if the value is lower than £1.00 it needs a trailing 'p' added  and the leading zero and '£' sign stripped off. If the value is lower than £0.10 it also needs the zero after the decimal point stripping off.
    Then formatting wise, the '£' sign needs to be superscripted and the same for the 'p'. This I am assuming could be done via GREP?
    In summary, can anyone help with the first task of referecing the Excel cells on a cell by cell basis, given that it is the same cell column each time, but the next row down, and also point me in the right direction of the price formattting issues.
    Any help will be gratefully received.

    I would do this:
    Create on line with the formatting.
    Export as InDesign tagged text (TXT)
    Read out these tags
    In Excel exists a function to connect text from several cells and predfined text, there connect the content from cells with the paragraph styling tags. Do it in a seperate sheet. (Better would be to use a database like Access, there you can link your Excel sheet).
    Export this sheet as txt file
    Place this sheet as tagged text (there is an option in one of the sialog boxes).
    In preferences  < file handling you can specify that Tablecalculation Sheets and text is not embedded but linked, turn it on.

  • Multiple errors with DSC modules modbus master and slave

    Hi,
    I've searched quite a lot of posts but haven't found solution for my problem. I'm playing with LabVIEW DSC module and it's modbus master and slave functionalities. Even the LabVIEWs own modbus examples (Modbus Simulator and Fundamentals) seem to work randomly or not at all: When checking the Variable Manager utility Modbus Simulator (i.e. modbus slave/server) seems to deploy variables correctly with good quality but Modbus Fundamentals (i.e. modbus master/client) most often shows unknown value or bad quality for all the variables. When running the VIs I get 'Error -1950679035 Unable to locate variable in the Shared Variable Engine' and sometimes some other errors too. If the Modbus Simulator (slave/server) is expected to work fine I guess I should get two slaves communicating, but this isn't happening either. So maybe Modbus Simulator example isn't working either.
    I've tried undeploying and deploying the libraries, stopping and starting the SVE, booting PC, reinstalling DSC module, and setting firewall and antivirus software off. This problem is going on with two different computers, both of which have recently installed LabVIEW 2011, first PC with Win XP and second PC with Win 7. No other OPC servers should be installed to these computers. And what is really interesting, the problem seems to have nothing to do with my network since Simulator and Fundamentals examples are not working even if the network cable is unplugged!
    Any suggestions? Replies are highly appreciated!

    V8 has the same feature, but the words are different.
    The Generator typically uses the Driver time base, and the Gl. Var Write is writing once per block.
    So, to see all values, you must have a block size of one.
    I set up the Driver timebase to 10 Hz, block size of 1. The Generator and the Read Variable default to the Driver timebase.
    The Generator is making a 2 Hz Rectangle waveform. YOu can see that it's shifted, but otherwise intact.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • Help needed with mx Modules...

    Hello guys!
    So, here´s the deal.... i have developed  a little application using flex which works just fine. I made some  stress tests an didn´t had any kind of failure.
    Then, i  decide to modularize my application.... i created a new application  (type <mx:Application> ) and transformed the old application into a  module (<mx:Module>) . Let´s calll this ModuleOne.
    I used as a basis for the development an example that  exists at the adobe site regarding ModuleLoader. (   http://livedocs.adobe.com/flex/3/html/modular_6.html#170736   )
    So,  now i have my Application, the ModuleLoader and my Modules. I have  created another module (ModuleTwo) in order to test and make some  troubleshooting.
    And now gets tricky. When i load ModuleOne, he works  fine, no problems... just like his old application type used to work.  When i load the ModuleTwo, he wors fine also. When i try to come back to  ModuleOne, loading it once again, the problems come.
    After  this second time load of ModuleOne, he doesn´t filll the ComboBoxes  with my database data. The clock cursor keeps running, as if he is  waiting for something... on my point of view, he is waiting for the  comboboxes to get filled.
    I read on several websites  that Modules sometimes don´t get unloaded or garbage collected due to  some references problems of Flex itself. Unfortunately, i´m not any kind  of pro. I´m still learning and trying to get things done.
    If you see the ModuleLoader webpage at adobe, you´ll se the exact code that i use to load, unload and reload the Modules.
    Below, i´ll post the code.
    I thank very much anyone for any help!
    Regards,
    BlknD
    Application Code
    <?xml version="1.0"?>
    <!-- modules/General.mxml -->
    <mx:Application xmlns="*" xmlns:mx="http://www.adobe.com/2006/mxml"  width="1020" height="644" layout="absolute" backgroundColor="#ffffff"  verticalScrollPolicy="off" horizontalScrollPolicy="off">
         <mx:Script>
             <![CDATA[
                 import mx.effects.easing.*;
                 import mx.modules.*;
                 [Bindable]
                 public var selectedItem:Object;
             ]]>
         </mx:Script>
        <mx:Object id="FormObj" label="Mapa" module="Form.swf"/>
         <mx:Object id="NewObj" label="News" module="News.swf"/>
          <mx:Button id="FormButton" label="Form" click="selectedItem=FormObj"  x="12.5" y="504" width="157.5" height="90" cornerRadius="20"  mouseUpEffect="bounceEffect"/>
          <mx:Button id="NewsButton" label="News"  click="selectedItem=NewObj" x="11.25" y="210" width="157.5" height="90"  cornerRadius="20" />
          <CustomModuleLoader id="mod" width="100%" height="100%" url="{selectedItem.module}" />
    </mx:Application>
    ModuleOne code
    <mx:Module  xmlns:mx="http://www.adobe.com/2006/mxml" paddingBottom="0"  layout="absolute" backgroundColor="#ffffff" initialize="{init()}"  width="820" height="584" dropShadowEnabled="false">
        <mx:Script source="Filler.as" />
            <mx:Text x="10" y="151" text="Form" fontWeight="normal"/>
             <mx:ComboBox x="10" y="167" width="134" id="Field01" labelField="name" />
    </mx:Module>
    ModuleLoader code
    Just like from Adobe site: http://livedocs.adobe.com/flex/3/html/modular_6.html#170736

    Hello harUI,
    well, i´m using Flex Builder 3 with Eclipse for the development.... and there is something weird....
    for my Internet Browser, the Flash Player version 10.1 is been used... but when i run the swf as stand-alone, the screen says it is running in Flash Player 9... do you have any tip about this?
    Regarding the JavaRemote.as file, he is as described below....
    As you can see, the "clock cursor running forever" seems happen on the function JAVARemote... since the cursor gets stuck after the module reload...
    After some test, i found some more weird thigs.... when the alert.show("Constructor") is on (not commented), the cursor don´t get stuck, but neither the combobox is filled... i have no idea what i´m facing here... i´m kind of desperate to find out what´s the issue....
    Regards!
    package ConnectRO {
        import mx.controls.Alert;
        import mx.rpc.AsyncToken;
        import mx.rpc.Responder;
        import mx.rpc.events.FaultEvent;
        import mx.rpc.remoting.mxml.RemoteObject;
        //Class used to perfome remote calls to the java classes methods.
        public class JAVARemote extends RemoteObject {
            public function JAVARemote(){
                super();
                this.showBusyCursor = true;
                //Alert.show("Constructor");
            public function get getConnection():RemoteObject {
                return this;
            public function call(Method:AsyncToken, NewResult:Function):void {
                var L_Async:AsyncToken;
                L_Async = Method;
                L_Async.addResponder (new Responder(NewResult, DefaultFaultHandler));
            private function DefaultFaultHandler (Result:FaultEvent):void {
                Alert.show(Result.fault.faultString, "Error");
        }// ActionScript file

  • (Another) problem with custom painting using JApplet and JPanel

    Hi all,
    I posted regarding this sort of issue yesterday (http://forums.sun.com/message.jspa?messageID=10883107). I fixed the issue I was having, but have run into another issue. I've tried solving this myself to no avail.
    Basically I'm working on creating the GUI for my JApplet and it has a few different JPanels which I will be painting to, hence I'm using custom painting. My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    public class TetrisClone extends JApplet {
         public void init() {
              setSize( 450, 500 );
              Container content = getContentPane();
              content.add( new mainGUI(), BorderLayout.CENTER );
              content.add( new rightGUI() , BorderLayout.LINE_END );
    class mainGUI extends JPanel {
         // Main bit where blocks fall
         public mainGUI() {
              setBackground( new Color(68,75,142) );
              setPreferredSize( new Dimension( 325, 500 ) );
              validate();
         public Dimension getPreferredSize() {
              return new Dimension( 450, 500 );
         public void paintComponent( Graphics g ) {
              super.paintComponent(g);
              // As a test. This shows up fine.
              g.setColor( Color.black );
              g.fillRect(10,10,100,100);
              g.setColor( Color.white );
              g.drawString("Main",45,55);
    class rightGUI extends JPanel {
         BufferedImage img = null;
         int currentLevel = 0;
         int currentScore = 0;
         int currentLines = 0;
         public rightGUI() {
              // The right panel. Has quite a few bits. Starts here..
              FlowLayout flow = new FlowLayout();
              flow.setVgap( 20 );
              setLayout( flow );
              setPreferredSize( new Dimension( 125, 500 ) );
              setBackground( new Color(27,34,97) );
              setBorder( BorderFactory.createMatteBorder(0,2,0,0,Color.black) );
              // Next block bit
              JPanel rightNext = new JPanel();
              rightNext.setPreferredSize( new Dimension( 100, 100 ) );
              //rightNext.setBackground( new Color(130,136,189) );
              rightNext.setOpaque( false );
              rightNext.setBorder( BorderFactory.createEtchedBorder(EtchedBorder.LOWERED) );
              Font rightFont = new Font( "Courier", Font.BOLD, 18 );
              // The player's playing details
              JLabel rightLevel = new JLabel("Level: " + currentLevel, JLabel.LEFT );
              rightLevel.setFont( rightFont );
              rightLevel.setForeground( Color.white );
              JLabel rightScore = new JLabel("Score: " + currentScore, JLabel.LEFT );
              rightScore.setFont( rightFont );
              rightScore.setForeground( Color.white );
              JLabel rightLines = new JLabel("Lines: " + currentLines, JLabel.LEFT );
              rightLines.setFont( rightFont );
              rightLines.setForeground( Color.white );
              JPanel margin = new JPanel();
              margin.setPreferredSize( new Dimension( 100, 50 ) );
              margin.setBackground( new Color(27,34,97) );
              JButton rightPause = new JButton("Pause");
              try {
                  img = ImageIO.read(new File("MadeBy.gif"));
              catch (IOException e) { }
              add( rightNext );
              add( rightLevel );
              add( rightScore );
              add( rightLines );
              add( margin );
              add( rightPause );
              validate();
         public Dimension getPreferredSize() {
                   return new Dimension( 125, 500 );
         public void paintComponent( Graphics g ) {
              super.paintComponent(g);
              g.setColor( Color.black );
              g.drawString( "blah", 425, 475 ); // Doesn't show up
              g.drawImage( img, 400, 400, null ); // Nor this!
              System.out.println( "This bit gets called fine" );
    }Any help would be greatly appreciated. I've read loads of swing and custom painting tutorials and code samples but am still running into problems.
    Thanks,
    Tristan Perry

    Many thanks for reminding me about the error catching - I've added a System.out.println() call now. Anywhoo, the catch block never gets run; the image get call works fine.
    My problem was/is:
    "My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:"
    I guess I should have expanded on that. Basically whatever I try to output in the public void paintComponent( Graphics g ) method of the rightGUI class doesn't get output.
    So this doesn't output anything:
    g.drawString( "blah", 425, 475 ); // Doesn't show up
    g.drawImage( img, 400, 400, null ); // Nor this!
    I've checked and experimented with setOpaque(false), however this doesn't seem to be caused by any over-lapping JPanels or anything.
    Let me know if I can expand on this :)
    Many thanks,
    Tristan Perry
    Edited by: TristanPerry on Dec 10, 2009 8:40 AM

  • Configuring - Cisco 2921 with Switch Module/POE PS and 3750-x 24 port switch

    This is what I have
    - Cisco 2921 router
             with SM-ES2-24-P switch module and
                     POE power supply
    -Cisco 3750x- 24 port Switch
    I have port G1/0 (which connects to 24p Switch Module port g0/26 logically) configured with 3 sub interfaces (management, User and VOIP)
    I want to connect 3750x to G0/1 on 2921 via fiber GBIC but want to use same three VLANs
    I can not daisy chain 3750x via the switch module because it does not have fiber port.
    I do not want to create another routed (g0/1) interface because I want to keep Users on both switches on the same subnet without further splitting the subnet in two.
    I hope I am not making this confusing.
    How can I bridge g1/0 and g0/1 so I can pass vlan traffic between two switches?
    Second problem i have is ...
    I have a VOIP connected to switch module (SM) and it is not getting any power.
    I went in to all the interfaces on SM and issued power inline auto command
    On the SM (sh power inline) - available is 0.0(w)
    on the 2921 (sh power inline)
       - power supply status is good,
       - maximun power available is 280.
       - interface G1/0( which connects to SM)
          *device is unknown
          * powered off
         * allocated 0.0 watts.
    I already tried resetting SM
    Is there any other command I need to issue?
    thanks for your help.

    I'm having a similar issue. I can get trunked connectivity between the switch module and the router if I put the IP address on the router sub interface, but not if I put it on a VLAN interface. I was hoping to have it on a VLAN sub interface on the router so I could use Gig0/1 and Gig0/2 to connect other switches and have them on the same VLANs. I'm using Gig1/0 on the router side and Gig0/51 on the switch side (48-port module).
    Any help? Am I on the wrong track altogether?

  • Help needed with Sun Java Studio Creator and EJB in a Portlet Project

    Hi
    I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
    But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
    Then i started going ahead step by step:
    1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
    2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
    3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
    I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
    Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.

    Hi,
    There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
    https://feedbackprograms.sun.com/login.html
    In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
    # Deploying Portlets
    # Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
    # Problem with Pluto when trying to deploy a portlet
    # Request: JSR-168 Portlet Project without JSF
    We kindly request you to post your further queries related to EA in the above mentioned forum.
    Cheers
    Giri

  • Please help me with my problem, urgently worried and tired. Cant seem to find a solution!

    I was just doing my website and doing my css stylings. Suddenly, when i create a css rule, it stopped showing in my live view or browser. It still appears the way i want in design view. I have no idea why, i am only a beginner and i am struggling with this. My assignment is due soon and i have not finished, I am feeling so stressed now i have resort to asking here. Please please help me, this means so much to me...i know its really messy i just need all my css to work. The textarea and form parts are not working. any new css created from this stage doesnt work too.
    Here is my html code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/lightbox-2.6.min.js"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <link href="css/lightbox.css" rel="stylesheet" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="css/gallerystyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #apDiv1 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 1;
              left: -9px;
              top: 75px;
    #apDiv2 {
              position: absolute;
              width: 754px;
              height: 115px;
              z-index: 1;
              left: 262px;
              top: 28px;
    a {
              font-weight: bold;
    a:link {
              text-decoration: none;
    a:visited {
              text-decoration: none;
    a:hover {
              text-decoration: none;
    a:active {
              text-decoration: none;
              font-weight: bold;
              color: #000;
    body,td,th {
              color: #000;
    #apDiv3 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 2;
              left: 31px;
              top: 27px;
    #apDiv4 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 21;
              top: 199px;
              left: 35px;
    #apDiv5 {
              position: absolute;
              width: px;
              height: 150px;
              z-index: 21;
              top: 145px;
              left: 8px;
    #apDiv6 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
    #apDiv7 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
    #apDiv8 {
              position: absolute;
              width: 269px;
              height: 332px;
              z-index: 22;
              left: 285px;
              top: 175px;
    #apDiv9 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
              left: 271px;
              top: 107px;
    #apDiv10 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 23;
              left: 588px;
              top: 106px;
    #apDiv11 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 24;
              left: 909px;
              top: 105px;
    #apDiv12 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 25;
              left: 273px;
              top: 497px;
    #apDiv13 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 26;
              left: 590px;
              top: 494px;
    #apDiv14 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 27;
              left: 910px;
              top: 498px;
    #apDiv15 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 28;
              left: 275px;
              top: 886px;
    #apDiv16 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
              left: 435px;
              top: 145px;
    #apDiv17 {
              position: absolute;
              width: 439px;
              height: 115px;
              z-index: 22;
              left: 267px;
              top: 156px;
    </style>
    <script type="text/javascript">
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
              Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onload="MM_preloadImages('images/GalleryTOPS/STRIPEY/3.jpg','images/GalleryTOPS/LONG/3.jp g','images/GalleryTOPS/vneck/3.jpg','images/GalleryTOPS/pink/3.jpg','images/GalleryTOPS/ss /3.jpg')">
    <div id="apDiv5">
       <section class="ac-container">
                                            <div>
                                                      <input id="ac-1" name="accordion-1" type="checkbox" />
                                              <label for="ac-1">New Arrivals</label></li>
                                            <div>
                                                      <input id="ac-2" name="accordion-1" type="checkbox" />
                                              <label for="ac-2">Tops</label>
                                                      <article class="ac-medium"><a href="blouse.html" class="linkstyle"><span class="linkk"> <span class="ac-medium">Blouse
                                                      </span><br />
    <a href="#" class="linkk">Printed Tops</a><br />
    <a href="#" class="linkk"> Basics</a></article>
                                            </div>
                                            <div>
                                                      <input id="ac-3" name="accordion-1" type="checkbox" />
    <label for="ac-3">Bottoms</label>
                                                      <article class="ac-small">
                          <a href="#" class="linkk">Pants</a>
                      <a href="#"> <li class="linkk" id="active">Skirts</li></a>
                      <span class="linkk"></span></article>
                                                      <div>
                                                      <input id="ac-4" name="accordion-1" type="checkbox" />
                                                      <label for="ac-4">Dresses</label>
                                            </div>
                                                            <div>
                                                      <input id="ac-5" name="accordion-1" type="checkbox" />
                                                      <label for="ac-5">Bags & Accessories</label>
                                                      <article class="ac-large">
                          <span class="linkk"><a href="#" class="linkk"><span class="ac-large">Bags </span></a><span class="ac-large"><br />
                          <a href="#" class="linkk">Clutches</a>
    <br />
    <a href="#" class="linkk">Necklaces & Bracelets</a><br />
    <a href="#" class="linkk">Eyewear</a></span></span> </article>
                        </div>
                                                                <div>
                                                      <input id="ac-6" name="accordion-1" type="checkbox" />
                                                      <label for="ac-6">Shoes</label>
                                                      <article class="ac-large">
                          <span class="linkk"><a href="#" class="linkk"><span class="ac-large">Flats</span></a>          <span class="ac-large"><br />
                          <a href="#" class="linkk">Heels</a>
    <br />
    <a href="#" class="linkk">Boots</a></span></span></article>                   
    </section>
    </div>
    <div id="apDiv2">
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li id="active"><a href="#">Shop</a></li>
              <li><a href="#">Blog</a></li>
              <li><a href="#">About</a></li>
              <li><a href="#">FAQ</a></li>
        <li><a href="#">Contact</a></li>
    </ul>
    </div>
    <div id="apDiv3"><img src="images/images/images/dolce_03.png" width="172" height="62" /></div>
    </body>
    </html>
    HERE IS MY CSS CODE:
    @charset "utf-8";
    /* CSS Document */
    #menu{
              width: 100%;
              margin: 0;
              padding: 10px 0 0 0;
              list-style: none; 
              background: none;
    #menu li{
              float: left;
              padding: 0 0 10px 0;
              position: relative;
              font-weight: bold;
    #menu a{
              float: left;
              height: 25px;
              padding: 0 34px;
              color: #CCC;
              text-transform: uppercase;
              font: bold 14px/27px Arial, Helvetica;
              text-decoration: none;
    #active a{float: left;
              height: 25px;
              padding: 0 34px;
              color: #000;
              text-transform: uppercase;
              font: bold 14px/27px Arial, Helvetica;
              text-decoration: none;}
    #menu li:hover > a{
              color: #000;
              transition:.30s ease-in-out;
              -moz-transition: .30s ease-in-out;
              -webkit-transition: .30s ease-in-out;
    /* Sub-menu */
    /* Clear floated elements */
    #menu:after{
              visibility: hidden;
              display: block;
              font-size: 0;
              content: " ";
              clear: both;
              height: 0;
    * html #menu             { zoom: 1; } /* IE6 */
    *:first-child+html #menu { zoom: 1; } /* IE7 */
    .ac-container{
              width: 200px;
              margin: 10px auto 30px auto;
              text-align: left;
    .ac-container label{
              font-family: Arial, Helvetica, sans-serif;
              padding: 5px 20px;
              position: relative;
              z-index: 20;
              display: block;
              height: 30px;
              cursor: pointer;
              color: #000;
              line-height: 33px;
              font-size: 13px;
              box-shadow: 1px  0px #333;
              filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 );
              font-weight: bold;
    .ac-container label:hover{
              color: #ccc;
              background-image:
    .ac-container input:checked + label,
    .ac-container input:checked + label:hover{
              background: #FFF;
              color: #F1C97E;
              text-shadow: 0px 1px 1px rgba(255,255,255, 0.6);
    .ac-container label:hover:after,
    .ac-container input:checked + label:hover:after{
              content: '';
              position: absolute;
              width: 24px;
              height: 24px;
              right: 13px;
              top: 7px;
    .ac-container input:checked + label:hover:after{
    .ac-container input{
              display: none;
    .ac-container article{
              margin-top: -1px;
              overflow: hidden;
              height: 0px;
              position: relative;
              z-index: 10;
              -webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              padding-left:60px;
    .ac-container input:checked ~ article{
              -webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    .ac-container input:checked ~ article.ac-small{
              height: 30px;
              padding-left:60px;
    .ac-container input:checked ~ article.ac-medium{
              height: 50px;
              padding-left:60px;
    .ac-container input:checked ~ article.ac-large{
              height: 90px;
              padding-left:60px;
    .linkk {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #000;
    .linktext {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 13px;
              color: #333;
    .accordion {  
         width:830px; 
         overflow:hidden;  
         margin:10px auto;  
         color:#;  
         padding:10px;  
    .accordion section{  
          float:left; 
          overflow:hidden;  
          color:#;  
          cursor:pointer;  
          margin:3px;  
    .accordion section:hover { 
          background:; 
    .accordion section p {  
          display:none;  
    .accordion section:after{ 
          position:relative; 
          font-size:24px; 
          color:#000; 
          font-weight:bold; 
    .accordion section:nth-child(1):after{ content:'1'; } 
    .accordion section:nth-child(2):after{ content:'2'; } 
    .accordion section:nth-child(3):after{ content:'3'; } 
    .accordion section:nth-child(4):after{ content:'4'; } 
    .accordion section:nth-child(5):after{ content:'5'; } 
    .accordion section:target {  
          background:#FFF;  
          padding:10px; 
    .accordion section:target:hover {  
          background:#FFF;  
    .accordion section:target h2 { 
          width:100%; 
    .accordion section:target h2 a{  
          color:;  
          padding:0; 
    .accordion section:target p { 
          display:block; 
    .accordion section h2 a{ 
          padding:8px 10px; 
          display:block;  
          font-size:16px;  
          font-weight:normal; 
          color:  
          text-decoration:none;  
    .vertical section{  
         width:100%;  
         height:40px;  
         -webkit-transition:height 0.2s ease-out; 
         -moz-transition:height 0.2s ease-out; 
         -o-transition:height 0.2s ease-out; 
         transition:height 0.2s ease-out; 
    /*Set height of the slide*/ 
    .vertical :target{  
         height:250px;  
         width:97%; 
    .vertical section h2 {  
         position:relative;  
         left:0;  
         top:-15px;  
    /*Set position of the number on the slide*/ 
    .vertical section:after{  
          top:-50px; 
          left:810px; 
    .vertical section:target:after{  
          left:-9999px; 
    .item {
              width: 490px;
              height: 30px;
              /* height = total height of A child element */
              overflow: hidden;
              margin-bottom: 3px;
              transition: height ease-in-out 500ms; /* css3 transition */
              -o-transition: height ease-in-out 500ms;
              -moz-transition: height ease-in-out 500ms;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #000;
              padding-bottom:1px;
    #accordion div:target {
              height: 150px;
              transition: background .30s ease-in-out;
              -moz-transition: background .30s ease-in-out;
              -webkit-transition: background .30s ease-in-out; /* height = total height of A and P child elements */
    #accordion a {
        display: block;
        height: 20px;
        background: #fff;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 24px;
              font-style: italic;
              font-weight: bold;
              color: #333;
              text-decoration: underline;
        padding: 1px;
    #accordion a:hover {
        display: block;
        height: 20px;
        background: #fff;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 24px;
              font-style: italic;
              font-weight: bold;
              color: #f1c97e;
              text-decoration: underline;
        padding: 1px;
              transition:.30s ease-in-out;
              -moz-transition:  .30s ease-in-out;
              -webkit-transition:.30s ease-in-out;}
    #accordion div:hover a:before {    color: #F1c97e;
              content:url(../images/images/aa_03.png)
    #accordion p {
        height: 380px;
        padding: 5px;
    .enqhead {
              font-family: "Arial Black", Gadget, sans-serif;
              font-size: 16px;
              font-style: normal;}
    .enquhead {
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 18px;
              font-weight: bold;
              color: #333;
              border: 3px solid #333;
              position: absolute;
    .embox {
              border-top-color: #000;
    .enqq {
              font-family: Georgia, "Times New Roman", Times, serif;
              font-weight: bold;
              font-style: italic;

    I'll 2nd Chris's comments about position:absolute.  It is definitely not needed for 98% of page layouts and in most cases should be avoided because it makes a complete mess of things. 
    You also have quite a few coding errors which mucks things up in browsers.  While I'm not certain what all you're trying to do with those labels, But I think you can simplify things enormously by using a very basic CSS layout and simple jQuery Accordion panels. 
    Copy & paste the following code into a new, blank document.  SaveAs test.html and preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document with Accordion Panels</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <script src="http://code.jquery.com/jquery-latest.min.js"> </script>
    <style>
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    img { vertical-align: baseline }
    body {
        width: 960px; /**adjust width as needed**/
        margin: 0 auto; /**with width, this is centered**/
        padding:0;
        background: #69F;
        font: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
        font-size: 100%;
        color: #000;
    /**global text links**/
    a img { border: none }
    a {
        font-weight: bold;
        text-decoration: none
    a:link { color: #069; }
    a:visited { color: #69F }
    a:hover, a:active, a:focus {
        text-decoration: underline;
        color: #000;
        outline: none;
    header {
        margin:0;
        padding:0;
        overflow: hidden;/*float containment**/
        width: 100%;
    header:after {
        /**clear floats**/
        content: '';
        visibility: hidden;
        display: block;
        clear: both;
    footer {
        margin:0;
        padding:0;
        width: 100%;
        color: #FFF;
        text-align: center
    article {
        margin:0;
        background: #FFF;
        padding: 2%;
    /**top navigation**/
    nav {
        margin:0;
        padding:0;
        float: right;
        width: 75%;
        overflow:hidden;
    #menu {
        width: 100%;
        margin: 0;
        padding: 10px 0 0 0;
        list-style: none;
    #menu li {
        float: left;
        padding: 0 0 10px 0;
        position: relative;
        font-weight: bold;
    #menu li a {
        display: block;
        padding: 0 34px;
        color: #CCC;
        text-transform: uppercase;
        font: bold 14px/27px Arial, Helvetica;
        text-decoration: none;
    #menu li:hover > a {
        color: #000;
        transition: .30s ease-in-out;
        -moz-transition: .30s ease-in-out;
        -webkit-transition: .30s ease-in-out;
    /* Clear floated elements */
    #menu:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    * html #menu { zoom: 1; } /* IE6 */
    *:first-child+html #menu { zoom: 1; } /* IE7 */
    /**accordion panels**/
    .accordion { margin: 50px; }
    .accordion dt {
        background: #DDD;
        line-height: 50px;
        padding: 10px;
        border: 1px solid #000;
        border-bottom: 0;
    .accordion dd {
        min-height: 100px;
        margin-left: 0;
        padding: 20px;
        border: 1px solid #ccc;
    .accordion dd &:last-of-type {
    border-top: 1px solid white;
    position: relative;
    top: -1px;
    .accordion dt a {
        display: block;
        font-weight: bold;
    </style>
    </head>
    <body>
    <header> <img src="http://placehold.it/172x62" height="62" width="172" alt="logo" >
    <nav>
    <ul id="menu">
    <li><a href="#">Home</a></li>
    <li><a href="#">Shop</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">FAQ</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </nav>
    </header>
    <article> <h2>New Arrivals &gt; Tops</h2>
    <dl class="accordion">
    <dt><a href="">Blouses</a></dt>
    <dd><a href="#">Printed Tops</a>  |  <a href="#" >Basics</a></dd>
    <dt><a href="">Bottoms</a></dt>
    <dd><a href="#">Pants</a> |   <a href="#">Skirts</a></dd>
    <dt><a href="">Dresses</a></dt>
    <dd>Something here... |   something here... |  something here...</dd>
    <dt><a href="">Bags &amp; Accessories</a></dt>
    <dd>Bags  |   Clutches  |   Necklaces &amp; Bracelets |  
    Eyewear</dd>
    <dt><a href="">Shoes</a></dt>
    <dd><a href="#">Flats</a> |   <a href="#">Heels</a> |   <a href="#">Boots</a></dd>
    </dl>
    <!--end accordion panels-->
    </article>
    <footer> <small>© 2013 XYZ Company. All rights reserved. </small> </footer>
    <script>
    //jQuery Accordion Panels//
    (function($) {
      var allPanels = $('.accordion > dd').hide();
      $('.accordion > dt > a').click(function() {
          $this = $(this);
          $target =  $this.parent().next();
          if(!$target.hasClass('active')){
             allPanels.removeClass('active').slideUp();
             $target.addClass('active').slideDown();
        return false;
    })(jQuery);
    </script>
    </body>
    </html>
    ❄  ☃  ❄Nancy O.

  • Can someone please help me with this. Loading problems and error codes.

    I have several problems with itunes on my PC. I use 2 PC's and Iphone for work and I have an IPod nano. For about a week I have been having several problems with Itunes. The first problem is I cannot access the store, I get the loading screen and that is it. This screen lasts forever, nothing ever happens it just loads, and loads, and loads. . . .
    I try to sign in thinking that will help the loading issue and I get error message saying "We could not complete your itunes store request. An unknown error occurred (-50)." This happens on both computers. I also cannot download from my iphone, I get the same error message. Running diagnostics does nothing, itunes says everything is in working order. Uninstalling and reinstalling also does nothing. I have had itunes for years now and up until about 10 days ago had no problems. My itunes is not behind a firewall on either computer. I'm saying all of this because I would prefer not to get obvious answers or links that do not help me. Please someone has to know how to fix this.

    Welcome to discussions! This is the rather infamous chkdsk error which will require that you restore your iPod. The following link will give you a complete explanation/instructions.
    http://docs.info.apple.com/article.html?artnum=300554

Maybe you are looking for

  • Should i use the same pass words on my macbook that i use on my ipad?

    HI...I have 2 questions...I am thinking about buying a macbook pro and when I set it up...should I use the same apple ID as I use on my ipad? Then...does the macbook pro have Java and Flash Player so I can play all the Pogo games?

  • Customer has 2 bank accounts, which one in payment run?

    Hello, I have searched the community, but haven't found the answer, so I added this discussion: We have customers with more than one bank account. When we do a payment run (F110), it always selects the first account in the list (tab payment transacti

  • My "unlimited plan" just auto-renewed, but under what terms?

    First, the apparent good news via email from ATT: +Congratulations, your auto-renew of Unlimited data for 30 days for $29.99 was successful.+ +Your credit/debit card has been charged $29.99.+ But at the very end of the email: +The terms for the AT&T

  • Help me to get the expected output for this procedure

    Hi i wrote a procedure in this way create or replace PROCEDURE compare_data(tabname in varchar2 default 'VARE_PPP',current_version in integer default 258,previous_version in integer default 253) is TYPE table_type IS TABLE OF varchar2(4000) INDEX BY

  • After installing ios6 I am not receiving mail

    After installing ios6 I am not receiving mail. I can send, but not receive. Am I required to activate iCloud for mail or is there some other problem?  I have checked settings and they are unchanged and correct.