NoClassDefFoundError only for first time access

I am having a problem of NoClassDefFoundError with my EJB3 entity bean. I am calling a stateless session bean from JSF (in the @PostConstruct init method). The session bean performs:
MyEntity result = (MyEntity) em.find(MyEntity.class, priKey);
However, upon accessing the page, I have this error:
Exception occured while retrieving DTOjavax.ejb.EJBException: EJB Exception: :java.lang.NoClassDefFoundError: com/mypackage/MyEntityPK
at com.mypackage.MyEntity.pcNewObjectIdInstance(MyEntity.java)
at org.apache.openjpa.enhance.PCRegistry.newObjectId(PCRegistry.java:142)
at org.apache.openjpa.meta.MetaDataRepository.processRegisteredClass(MetaDataRepository.java:1438)
at org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1389)
at org.apache.openjpa.meta.ClassMetaData.getPCSubclasses(ClassMetaData.java:329)
at org.apache.openjpa.meta.ClassMetaData.getPCSubclassMetaDatas(ClassMetaData.java:346)
at org.apache.openjpa.meta.ClassMetaData.getMappedPCSubclassMetaDatas(ClassMetaData.java:368)
at org.apache.openjpa.jdbc.meta.ClassMapping.getMappedPCSubclassMappings(ClassMapping.java:605)
at org.apache.openjpa.jdbc.meta.ClassMapping.getIndependentAssignableMappings(ClassMapping.java:644)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(JDBCStoreManager.java:300)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager.java:263)
at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:111)
at org.apache.openjpa.datacache.DataCacheStoreManager.initialize(DataCacheStoreManager.java:336)
at org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreManager.java:111)
at org.apache.openjpa.kernel.ROPStoreManager.initialize(ROPStoreManager.java:57)
The weird thing is that when I tried to access the page again using another browser, the calling works and the result is returned successfully.
Has anyone experienced this problem?

Hi, did you find a durable solution to your problem, because we have seen the same situation and putting the jar file in the WebLogic lib-folder is not a solution.
Our ear-file contains an ejb jar where the entity classes are located as well.

Similar Messages

  • Getting Auth error for cFolder only for first time

    Dear Experts,
    I am getting authorization error when I click on "Tech RFx" button from vendor side.
    After that if I close that cFolder window and again clicking on "Tech RFx" button, it is allowing me to go ahead without any error!
    I tried debugging, I am getting error from one standard method which gets metadata.
    Kindly share your views...
    Thanks & Regards,
    Sagar

    I see that this question was answered but the answer was not posted, I am having the same issue how was it resolved?

  • Tried to trim a video clip for first time iOS 6 trimming in progress last 10 hours. Not responding cant access photos. Help

    Tried to trim a video clip for first time iOS 6 trimming in progress last 10 hours. Not responding cant access photos. Help

    Reset your device by pressing the home button along with the sleep/wake button until you see the apple, then let go.

  • HT4053 I start my new iPhone 5s 64 for first time , no hello screen , only white screen with black apple logo

    I start my new iPhone 5s 64 for first time , no hello screen , only white screen with black apple logo
    How can I start my iPhone (I already did restart - it didn't help)

    Did you activate the phone already?

  • First time access to Outlook Web Access calendar after ADFS authenication redirects to mailbox

    I am building an external web application that authenticates against ADFS. My current Exchange environment is a hybrid configuration of Office 365 with a Exchange 2013 hybrid server. 
    Here are the steps to reproduce my problem:
    Open external web app
    Authenticate via ADFS login page then redirect back to web app
    Click on direct link to OWA calendar: https://outlook.office365.com/owa/#path=/calendar
    From there, it will go through the OWA loading screen and open the mailbox instead of the calendar. This only occurs after the very first time accessing OWA after authentication; any attempts after that will correctly route to the calendar. 
    Is there a way to correctly route to the calendar everytime?

    Hi Robert,
    From your description, when you receive access denied message and hit back button in browser, it redirects you to the root site but not previous site. However, this just happens at the first time.
    You may try to use some tool or check log which can tell us how does it handle the request when you hit the button. And compare the issue time and non-issue time.
    I'd suggest you use Netmon tool:
    http://blogs.msdn.com/b/carloshm/archive/2012/11/08/sharepoint-2013-network-monitor-parsers.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    If you synced it many times, you have to have a backup. It's just a question of how old that backup is now. When did you last sync?
    First of all launch iTunes on your computer and go to Edit>Preferences>Devices. Do you see any backups for you iPad in that window? If so, how new is the newest backup? That will be the backup that you will want to use. But remember that if you use that backup and it is one month old, you can only restore from that date back in time. Anything that you did on the iPad in the past month will not be in that backup.
    Turn on the new iPad Minin and start activating OTA via WiFi. You will get to a certain point in the process where you will be given the choice to Set up as new, Restore from iCloud - or Restore from iTunes. You will want to select Restore from iTunes.
    That is the short and sweet version. There are step by step instructions in this article. This applies to the mini as well as the iPad 4 or the iPad 3 for that matter.
    http://www.everythingicafe.com/how-to-set-up-new-ipad/2012/03/16/

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • HT1476 if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in A

    if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in America?
    please i need help, im worried that if I connect my ipod here, it will burn or sometihng bad.

    Just connect it to a computer's USB port.
    Most wall chargers are dual voltage (110- 220 volts) and only require a plug adopter. Check the wall charger to see if yours is.

  • I hate to say - DISATISFIED WITH with CUSTOMER CARE RESPONSE and VERIZON in all for first time.

    I am currently on National 900 plan on Motorola Droid. I switched from AT&T primarily because I love to use data on mobile. Verizon provided me the unlimited plan. I was a very happy customer with Verizon untill now.
    Scenario -
    Today, I called up Verizon customer care executive to see why bill for the month was not readjusted. Can anyone believe it its staggering $1137.73 [Roaming charges 1019.19].
    Since this January, I am visiting to Canada. On first visit in January, I called up customer care to see what options I do have to use my phone in Canada as I use it in US. Verizon had a wonderful plan - just the monthly data plan is escalated appear. 30-40$ extra than the normal appear. 29.99$ plan. I happily added that plan before visiting Canada. While there is Canada, I did get notification couple of time that I am exceeding data limit but again checked with customer care later - they readjusted the bill as that was 'FALSE ALERT' as I was on unlimited data plan while roaming as well in Canada since I paid the additional prorated of (30-40$) for period of my stay there.   
    This equation worked for first and second visit - Unlimited Data while I used to get FALSE ALERT.  
    On my  third visit , things changed - Verizon stopped providing the unlimited data services. I called up as usual before this visit. Customer care executive said - you are set to go to Canada now. I was not very specifically told on call that the rules have changed now and there is limit to data usage while roaming. During this visit also, I got the alerts - I assumed this was also a FALSE ALERT like prior one. 
    But this time, it was not FALSE ALERT, now I charged with this fee. I raised my concern and called up customer care appear. 10 day before [today is March 6th], they assured me that it is going to be re-adjusted ONLY for this time. And, they also asked to check account after 48 hours and if not readjusted please call. But, I checked my account today and it was not readjusted. So, I called up customer care executive for half an hour -- not willing to listen to any logic of mine and he said politely 'SIR, WE CANNOT READJUST YOUR BILL' . I am still trying to figure out where is my fault when I was not told DATA PLAN HAS CHANGED FROM THIS VISIT.
    I hope senior management will look into this matter and re-adjust current bill. It's due this March 10th. I would appreciate any positive response prior to this so that I can pay the bill and BE A HAPPY VERIZON CUSTOMER.
    Sincerely,
    Manoj K. [removed personal information]

    I called them back yesterday night, not willing to listen my story. Sir we sent you SMS notifications. But these notifications, I also got when I had unlimited plans on first and second visit. Then customer care told SIR you don't need to worry - but this time I should have been very specifically told rules are changed before changing my plans which I wasn't. I was under impression that I am on same unlimited plans.
    A job not well done in COMMUNICATING TO CUSTOMERS and using that an opportunity to OVERCHARGE $1100 - INSANE for one month bill. None of my fault. SMS notification is no communication as earlier SMS noitification were false positive and bills were adjusted as I was on unlimited data plan.
    Now you change the rules and send SMS Notification; RULE CHANGE, one is not aware of.. ANY NORMAL person will treat SMS notification as FALSE ALERT.. isn't it??

  • How to approve the request only for one time for human task in BPM Worklist

    Hi All,
    I'm having a requirement where i have made the hierarchy in the .task file where in created two users for which i need an approval in a hierarchical manner. But when i'm approving the request from worklist app for one user and the request is going sucessfully to the second user and if i approve it over there it once again coming to first user where i have approve it once again to get the request processed. how to get request processed only for one time when it is approved. Do we need to customize anything
    If you did it can anybody can share thoughts on this please. Your help is highly appreciated.
    I am not able to see the rejected request at all. where to see the rejected request.
    Regards,
    CH

    Hi,
    Following are the some important points you should understand about ESS Leave Request Workflow
    1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
    2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
    3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
    4. Apart from schedule job as mentioned above, you also have to schedule a background job for program  RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
    as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
    Good Luck !!
    Regards
    Krishna Mohan

  • Need to restrict triggering of workflow only once(first time).

    Hi guys,
    I hv a requirement to trigger the workflow only once(first time).
    whatever is the the condition/changes in document, it should not trigger for second time.
    do we hv any options available for this........
    thanks in advance...
    santosh.

    Hi susan,
    Below is the requested information,
    Release : ECC 6.0
    we are working on custom WF for ECO creation(CC01).
    Description,
    ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.
    we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.
    As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.
    Bottomline is , it is triggering as soon as any changes happens.
    But, we want it to restrict for one time triggering.
    Regards.
    santosh.

  • UploadedFile & https Only work first time upload ????

    I am using 10.1.3.4 Jdev. I use UploadedFile interface to upload files from local PC and ftp files to unix server. My "upload" web page works between my local PC and Unix server, but it only works first time upload file and ftp between
    https server (application server--weblogic 10.0) and Unix server. If I just use http without SSL and my codes work fine you can upload file as many times you want and ftp them to Unix server. I used FTP not sftp to transfer files from application server to unix server. Can anyone shed some lights on my head ???? Thx.

    Yes. I changed my code to SFT from ftp. it works. Thx. This URL for sftp: http://www.jcraft.com/jsch/ and is very good .
    Edited by: albertpi on Feb 11, 2010 8:05 AM
    Edited by: albertpi on Feb 11, 2010 8:05 AM

  • Taking action only the first time an event executes

    I want a certain action to occur only the first time an event handler for a button is called. Is there a simple way to do this?
    Bill F

    There are two pretty easy ways to do this.
    If you want to continue to trap other events (other event cases in your event structure), use a shift register:
    1. Add a shift register to the loop containing your event structure. (right-click on the left-hand border of your loop and select Add Shift Register).
    2. Wire a numeric constant = 0 from outside the loop to the input (left-hand) terminal of your shift register.
    3. Inside your event structure, in the event case you want to handle only once, put a case structure around the code you want to execute only once. That code should be within the True case.
    4. Add an Equal To 0? function (from the comparison palette) to the loop. Wire the input shift register to the input of Equal To 0?. Wire the output of Equal To 0? t
    o the selctor for your new case.
    5. Within the True case of your new case structure, add a numeric constant = 1. Wire that constant out to the output (right-hand) side of your shift register.
    6. Within the False case of your new case structure, wire the input side of your shift register to the output tunnel created by the wiring in step 5.
    This way the event structure will keep running and handling other events, but the case you just modified will only run the first time: the first time you get the event, the shift register will = 0 so you'll execute the True case of your new case structure. Within that case, you set the shift register to 1. The next time you get that event, the shift register = 1, not 0, so you'll execute the False case and not the code in your True case.
    If you want to stop all event handling after the first event and your event handler is the only thing with its loop, from the event case (for the event you want to stop on), wire a True boolean constant out to
    the Stop terminal of the loop containing your event structure.

  • Itunes application error when attempting to open for first time. HELP

    Running windows xp pro, just bought new ipod classic, installed itunes software. When attempting to open for first time i get an itunes.exe - application error, error message that reads "The instruction at "0x100001040" referenced memory at "0x100001040". The memory could not be "read". Click ok to terminate the propgram. Click on CANCEL to debug the program. I have tried re-installing several times, cleaned temp etc. Nothing. Please help, i really want to start using my new ipod.

    You have to unhide your library folder and adjust the user permissions to allow write access.
    Mylenium

  • X230 - Setup Is Preparing Your Computer For First Time Use

    Dear all, 
    I just received my X230 bought on Ebay and as I first turned on the computer, Windows was frozen and showed "Setup Is Preparing Your Computer For First Time Use" for hours (I guess its a whole day). Since I do not have any recovery media provided, does anyone has alternative solution? 
    Thanks in advance!

    Thanks! It took me a whole day to figure out what happened and I ended up format the whole drive and reinstall the windows. Yes, you are right, X230 is a good machine and acutally I was thinking to puchase X240 since there is kind of back to school program that you can purchase X240 at a deep discount price. After so many bad comments I chose X230 instead for: 
    1. Physical Trackpad button (which is extremely important as I ONLY use trackpoint) 
    2. 2 ram slots 
    3. normal voltage CPU
    I am surfing the net with X230 and I am so happy I bought this.

Maybe you are looking for