ClassCastException When we use JSP with Normal Bean in WebLogic 5.1

          Hai Everybody...
          We have an application where JSP files are using the Normal Java beans(Nothing
          but a Java Class).Here all jave beans are in a folder ..\myserver\classfiles\
          and the jsp files are in ..\myserver\public_html\..... .
          This combination is throwing a ClassCastException when the JSP try to Intantiate
          the bean....It doesn't give error alway..Initially it works fine and all of a
          sudden it throws this error..
          Plse..If anybody can help us Do So....
          sijo
          

That is correct; WLS 5.1 does not support the updating of these helper classes.
          In WLS 6.0, you can package everything up as a web application or enterprise
          application and redeploy the whole thing (including the helper classes)...
          Alex wrote:
          > But, Robert, that means the JavaBean classes cannot be updated without
          > restarting the server.
          >
          > I tried putting them in the servlet directory. With the result that they
          > often work, but sometimes I get the same ClassCastException as sijo. Where
          > should JavaBean classes that are used from JSP (and maybe other servlets) be
          > put in order to be able to update them?
          >
          > "Robert Patrick" <[email protected]> escribió en el mensaje
          > news:[email protected]...
          > > The Java Beans being used by the JSP pages need to be placed into the
          > > WEBLOGICCLASSPATH (i.e., -Dweblogic.class.path=...) and not in the working
          > directory
          > > where the JSP-generated classes are created (i.e., \myserver\classfiles is
          > typically
          > > the working directory for the JSPServlet and \myserver\serverclasses is
          > the
          > > appropriate place for the Java Beans used by the JSPs)...
          > >
          > > sijo wrote:
          > >
          > > > Hai Everybody...
          > > >
          > > > We have an application where JSP files are using the Normal Java
          > beans(Nothing
          > > > but a Java Class).Here all jave beans are in a folder
          > ..\myserver\classfiles\
          > > > and the jsp files are in ..\myserver\public_html\..... .
          > > >
          > > > This combination is throwing a ClassCastException when the JSP try to
          > Intantiate
          > > > the bean....It doesn't give error alway..Initially it works fine and all
          > of a
          > > > sudden it throws this error..
          > > >
          > > > Plse..If anybody can help us Do So....
          > > >
          > > > sijo
          > > >
          > > >
          > >
          

Similar Messages

  • When to use Custom Adapter, Event Beans and Spring beans

    Hi,
    I have basic question on when or on what basis/scenario the Custom Adapter, Event Beans or Spring beans should be used.
    All three has same implementation methods.
    Please help me in understanding when to use Custom Adapters, Event Beans or Spring beans.
    Thanks,
    Sri
    Edited by: 897694 on Mar 7, 2012 8:12 AM

    custom adapters:
    you have to use a custom adapter when you don't find any adapter in ocep which will serve your purpose.
    Most of the times you use an adapter to connect the application with external things like http server, etc It can be both to listen the events or to send the events outside.
    Event Beans:
    This type of beans does most of the work that an adapter code does but in convention beans are not used to connect the application with external stuff
    You can use Beans as event sink etc In this case using an using an adapter is not suggestable.
    If you implement Interfaces like Initializing Bean for an adapter code it won't work properly, you have to use an event Bean in that case.
    Spring beans:
    Spring beans are used when the bean code doesn't implement EventSink or EventSender.
    These beans are used to enable something (eg: make ${wlevs_dev_home}/abc/a/b.java this path is not understandable by java code unless you override the path using a spring bean)
    Most of the things which doesn't need a connection between components in the application (eg cache loader: you can do this using spring beans and event beans both but spring beans doesn't need a connection with cache)
    Hope this small writeup helps you :)
    Edited by: Patha on Mar 8, 2012 9:10 AM

  • When to use jsp,and when to use servlet?

    I think that jsp and servlet can realize the same functions, because when run a jsp, it is transferred to a servlet program, so when to use jsp and when to use servlet?
    I am now developing the input interface for a website, I just use jsp and javabean to connect to weblogic and database, and I didn't use servlet, Is there any unseemliness?
    Thank you!

    IMHO I use servlets to control the flow between my jsp's based on a number of factors in a webapp. For instance, user authorization. If a user has the authorization to conduct various administrative functions on an application (like change user rights, reset passwords etc) they will have access to specific buttons or links on some screens that others will not. I use servlets to establish what access rights a user has and direct them to the appropriate pages. I also use servlets to test data validity on form input screens. I know that I can also do this with JavaScript but that can be disabled by the client and in order to prevent that I also double check the form input from a servlet. All my jsp's do is display the results of a business process (which is held in a JavaBean or EJB) and the servlets act as the controllers for the application, connecting to multiple databases, verifying application state, flow control etc. I try to keep the jsp as simple as possible as some of them are maintained by html developers who lack the necessary experience to write java code. I hope this helps.

  • How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?

    How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
    I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
    Someone, Please help

    Hi Allen,
    Is there any way to store the back up to Mac and restore after formating?

  • HT204347 When I use FaceTime with friends who are currently outside of UK, I cannot make my voice heard after about 20mins' chatting. While this situation will be better if I restart my MBP,but only better in around 20mins.

    When I use FaceTime with friends who are currently outside of UK, I cannot make my voice heard after about 20mins' chatting. While this situation will be better if I restart my MBP,but only better in around 20mins.

    When I use FaceTime with friends who are currently outside of UK, I cannot make my voice heard after about 20mins' chatting. While this situation will be better if I restart my MBP,but only better in around 20mins.

  • Flex sampling frequency changes when I use it with apple loops

    Flex sampling frequency changes when I use it with apple loops in a 24 bit 88.2 project

    sorry  !
    Flex changes sampling frequency when I use it with apple loops in a 24 bit 88.2 project

  • I have purchased a eos 6d. When I use it with the iPhone app the connection dies after about five m

    I have a 6d and when I use it with the iPhone app the camera turns off after about five minutes and the connection is lost. So when I am photographing wild life I keep having to break cover to reactivate the connection. Is this correct or is there a way to keep the connection alive.

    You just need to go into the menu and set the camera's sleep mode to "off" or "never". It sounds as if it's currently set to 5 minutes.
    Letting the camera sit active continuously, i.e. preventing it from going into sleep mode, will drain the battery(ies) a lot faster. I don't have a 6D, nor do I leave them on full time (in fact I set sleep mode to a very short duration, since tapping any button on the camera quickly re-awakens it).... so I really don't know how quickly a battery will drain. But you might be prepared with spares. If battery life is too short for you purposes, you could add a battery grip which will double the battery capacity.
    Alan Myers
    San Jose, Calif., USA
    "Walk softly and carry a big lens."
    GEAR: 5DII, 7D(x2), 50D(x3), some other cameras, various lenses & accessories
    FLICKR & PRINTROOM 

  • How can I get to see the app NoteTaker HD in the options I have when I use " Open with ..."

    How can I get to see my app Note Taker HD in the options that I have when I use " Open with ...  "  I am trying to open a PDF that I have attached to a mail document in Note Taker HD.
    Thanks

    To buy Apps or to check out the Apps available via your iPad use the App Store App.
    On your iPad your Music is kept in the iPod App and the movies are on the Movie App after you have synced the Music and Movies from iTunes on your computer to your iPad.
    S.

  • Is it possible to use JSP with EJB

    A pretty dumb question.
    JSP + Servlet + DB can be used together to write a j2EE application, such as some shopping system.
    But what's the usage for EJB? Does it still need JSP to do the output to client?

    To use a JSP with an EJB:
    Create a taglib for the EJB and access the EJB in the JSP with the taglib.
    WebLogic provides the EJB to JSP integration tool.
    http://e-docs.bea.com/wls/docs61/jsp/ejb2jsp.html

  • When I use Thunderbird with Yahoo Groups, Google groups, and other email lists, I don't get a copy of my own emails back from the list (I do with Mail.app)...?

    When I use Thunderbird with Yahoo Groups, Google groups, and other email lists, I don't get a copy of my own emails back from the list. I *do* when I use Mail, so it seems like a Thunderbird thing. I'd really like to see my own emails come back to me in the conversation so that I know where my remarks fall in the discussion; it's very disorienting when you can't tell if your email has arrived at the list, or not. I can't seem to find the setting, and I've searched thru your help topics, etc., to no avail. Thanks.

    It's both gmail and mac.com email accounts, and it's all email lists -- including some privately hosted on servers, that are not Google groups, not Yahoo groups.
    I'm not sure what you mean by "saving a copy of your messages yourself" in Mail -- if I email to the lists with Mail on my laptop or iPad, I can see it on my desktop computer too, right in line with other email messages in the thread, after the list resends the message I've submitted. It's only Thunderbird that this "invisible posts" behavior happens, and it didn't use to happen this way. I used to get my emails posting right in the thread.

  • When I use Siri with Voiceover on my iPHONE 4S. Voiceover will not respond to any finger jestures. Why does this happen?

    When I use Siri with Voiceover on my iPHONE 4S. Voiceover will not respond to any finger jestures. Why does this happen?                                           

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • I got ClassCastException when i use the Webservice Deployeble Client.

    hi, i created a webservice deployeble client. when i use the proxys i got ClassCastException
    here it is my code
    Context ic = new InitialContext();
                   out.println("----1---");
                   Object lookuped =
                        ic.lookup(
                             "wsclients/proxies/sap.com/ClientProxyDefinition/in.mobileone.demo.proxy.WSClientProxy");
                   out.println("\n----2---"+lookuped.getClass());     
                   PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
                   out.println("\n---3--
                   Object narrowed =
                        objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
                   out.println("\n---4--" + narrowed);
                   AdminOperWS service = (AdminOperWS) narrowed;
                   out.println("----5---" + service);
                   AdminOperWSViDocument client = null;
                   ClsSuper objClsSuper = new ClsSuper();
                   String strErrorCode = null, strErrorMessage = null;
                   client =
                        (AdminOperWSViDocument) service.getLogicalPort(
                             "Config1Port_Document",
                             AdminOperWSViDocument.class);
                   out.println("----5---" + client);
                   objClsSuper = client.createUser("2", "lakshman", "lakshman", "ad");
    i got the output:
    1-----
    2-----class in.mobileone.demo.proxy.AdminOperWSImpl
    3----
    java.lang.ClassCastException
    plz send solu...
    Thank U

    Hi Lakshman,
    can you please elaborate how you are calling this web service( where you get the stub?)
    Why are you using these lines?
    PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
    out.println("\n---3--");
    Object narrowed =
    objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
    out.println("\n---4--" + narrowed);
    These are used mailny for CORBA objects( while calling EJBs).
    Just remove these line and try.
    Please do come back with the output.
    Regards,
    Piyush

  • Adobe forms using Workflow with normal SAP

    Hi All,
    Can any one help me, how to assign Adobe forms to Workflow with normal SAP.
    Thanks,
    Archana.

    Hi,
    The std. PCR (Process Change Request) workflow use  Adobe forms.
    BO is BUS7051,The std. workflows are
       WS50000041
       WS50000042
       WS03100019
       WS21300032
    Check this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d1cb99-46cf-2b10-8880-85004a301283]
    Regards,
    Surjith

  • When i use firefox with mafia wars none of the pictures display - i think i hit a hide picture button?

    using mafia wars, it does not show any of the pictures only the words so it makes it difficult to know where to click. mafia works fine when i open in chrome - so it is something i did while using firefox.

    With the site on display, click on the site identity button (for details on what that is see [https://support.mozilla.com/kb/Site+Identity+Button]) and then on More Information. This will open up the page info dialog.
    First select the Permissions panel, make sure that "Load Images" is set to allow (selecting Use Default should also work)
    Next select the Media panel, then click on the first item in the list. Use the down arrow key to scroll through the list. If any item has the option "Block images from (domain name)" selected, de-select the option.
    This should hopefully resolve your issue, but also see [https://support.mozilla.com/kb/Images+or+animations+do+not+show].
    Some add-ons can also block images, for example if you have AdBlock Plus installed, make sure that you have not accidentally created a filter to block the images.

Maybe you are looking for

  • Podcasts badge still not working after latest update WHY??

    I was hoping the latest update would have fixed the problem with the badges in podcasts! But no still the same! It's just crazy to me they used to work before i think it was version 5.2, you just opened the podcast apps and the badges told you how ma

  • Camcorder Compatibility Issues

    I have a Sony DCR-HC40 camcorder and USB cord, and I want to capture video onto my new Mac. I do not believe iMovie is compatible. Is there any way I can use this camera to upload the video?

  • Oracle Help search feature doesn't work with RoboHelp generated output

    I am using RoboHelp HTML, Version 10 on Windows 7.  I am able to generate Oracle Help output and integrate it with my Java application.  When I do this, the Content and Index tabs work fine, but the Search feature does not. Regardless of what search

  • Getting the MAC address of local computer

    Hello developers! Can you to tell me how I can to get a MAC address of local computer in Java, JDK 1.4.0???? Thank you!

  • Flatten Form field Only or specific field

    I'm doing a PDF Form for a client. The client will use Adobe Reader XI to enter the data and save the results. I was using a button with a javascript to flatten the form field and do a save as. Everything work fine until I discovered that the flatten