Calling a newly deployed EJB from an EJB gives a NoSuchMethod Exception if the jar of the newly deployed ejb is not in the classpath
Hi ,
I have an EJB A which is already deployed when the server starts. A second ejb
B is deployed at a later time.
EJB A calls methods in EJB B. I use reflection in EJB A to call methods in EJB
B.
I get a NoSuchMethodException when I call the create method in the Home object
of EJB B. If I add the ejb jar file to the classpath before the server starts
then it is able to resolve the method.
The problem is the EJBs which are called from EJB A is not known before the server
is started. New EJBs can be deployed at runtime and EJB A should be able call
the methods in newly deployed EJB's.
I also use the URLClassLoader to load all the classes in the jar file of the newly
deployed EJB in EJB A and it still gives a NoSuchMethodException because it cannot
resolve the stub class.
My error log is shown below.
This is an urgent issue.
Thanks
SampleConnector::testEJBService called
In Key : P1 Value : Input2
In Key : P3 Value : Input1
In Key : P2 Value : SomeConst
Loaded Class = com.bizwave.samples.rejb.SampleRemote
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getDeclaredMethod(Class.java:1151)
at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
ctorEJB.java:181)
at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
viceStepMgr.java:91)
Hi,
I am attaching a test case. This test case actually demonstrates a security bug.
Unzip the file and modify the StartWeblogic.cmd in domainA to not refer to the
SampleRemoteEJB.jar in the classpath. If u run the test client under the client
dir u will see a NoSuchMethodException.
The reason is it is not able to load the dynamically generated stub file.
Initially I had the getMethod and it didn't work. You might have to modify the
files to suit ur env. The easier way is to run th edomain wizard and create 2
domains. Run the servers in development mode and place the jars under the applications
dir
Thanks
Rajesh Mirchandani <[email protected]> wrote:
Do you have any old EJB classes in your classpath? Did you recompile
your EJBs if you
upgraded from a old release or a Service pack?
Bob Lee wrote:
Hmmmm. That's an interesting problem.
Why is it giving you a NoSuchMethodException instead of a
ClassNotFoundException?
Can you post the code from SampleConctorEJB.java, line 181?
Try changing your call to getDeclaredMethod() to getMethod().
getDeclaredMethod() searches only the class you called it on, whereas
getMethod() traverses to the superclasses and interfaces. You onlyneed
getDeclaredMethod() when you're accessing a nonpublic method.
Not sure if this will help, but it's worth a shot.
Bob
Vasu wrote:
Hi ,
I have an EJB A which is already deployed when the server starts.
A second ejb
B is deployed at a later time.
EJB A calls methods in EJB B. I use reflection in EJB A to call methodsin EJB
B.
I get a NoSuchMethodException when I call the create method in theHome object
of EJB B. If I add the ejb jar file to the classpath before the serverstarts
then it is able to resolve the method.
The problem is the EJBs which are called from EJB A is not knownbefore the server
is started. New EJBs can be deployed at runtime and EJB A shouldbe able call
the methods in newly deployed EJB's.
I also use the URLClassLoader to load all the classes in the jarfile of the newly
deployed EJB in EJB A and it still gives a NoSuchMethodExceptionbecause it cannot
resolve the stub class.
My error log is shown below.
This is an urgent issue.
Thanks
SampleConnector::testEJBService called
In Key : P1 Value : Input2
In Key : P3 Value : Input1
In Key : P2 Value : SomeConst
Loaded Class = com.bizwave.samples.rejb.SampleRemote
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getDeclaredMethod(Class.java:1151)
at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
ctorEJB.java:181)
at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
viceStepMgr.java:91)
Rajesh Mirchandani
Developer Relations Engineer
BEA Support
[user_projects.zip]
Similar Messages
-
I bought an I pad 2 from us but I can not activate the Facetime in UAE(Dubai)as I can not see the country in the I pad's drop list, anyone has an idea as to how to resolve this issue
I'm not that familiar with how FaceTime works. I know how to set It up but I don't use it. I just know that you can't activate in the UAE. I believe that you can activate in any country that permits it's use. Whether you will need a new ID or not, I can't confirm.
You can Google this and get all sorts of articles on workarounds. Apparently if you set up a VPN you can use it in the UAE. Here is one article that I found.
http://talkfree7.blogspot.com/2010/09/how-to-facetime-voip-call-from-uae.html
I Googled "workaround for FaceTime in UAE" to find this. -
I just had to reformat the external hard drive that houses my iPhoto library, then restore it from a backup. Now Time Machine is telling me my backup hard drive suddenly does not have the space to complete a backup. I also noticed when I go in to Time Machine, there are only about 5 backups recorded on the ext. hard drive. There were many more before. Any idea what happened and if I have to buy a new back up hard drive?
Hallo Kieth ,
I am not quite ready to restore the full iphoto library , as I have days of work re - imputting titles,descriptions and enhancement . I hope that your suggestion works , as I use my Macbook basically to work with digital photography. Through time , I will need to delete my library to recover more disc space and I would hate to have to spend more time re - imputting titles and descriptions all over again .
Thanks for your interest and advice.
regards - Alan -
Bought a new 4s and need to transfer photos from iCloud to new device. iCloud is giving me an old @me address. I do not have the email or pw for the iCloud account. How do I retrieve this information? Thanks.
If you need to change the iCloud ID on your new phone you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use. If you don't know the password for your old ID, or if it isn't accepted, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll. When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be able to download the srtony adobe.
Adobe - Lightroom : For Macintosh
Hal -
I installed Photoshop Elements 11 on a new computer a month ago. It opened several times until yesterday. I uninstalled it and now am trying to reinstall from the CDs that I own and it will not read the disk. Nothing happens. I had previously downloaded it to my laptop and work computer. How do I install it again?
You can't run PSE from a USB drive, nor can you transfer PSE to a different computer via a USB drive. PSE must be installed on a computer using the installer program provided by Adobe.
-
I want to open ppt or pptx from the web, save them as PDFs, and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.
Apple's iWork apps
http://www.apple.com/iwork/
3rd party Microsoft equivalent apps
http://www.polarisoffice.com/en/iOS.asp
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1
Others, including cloud based
Microsoft Office Web Apps:These are versatile apps since they can be used on or off the cloud. Expect a simplified experience to the full version of Microsoft Office suite.
OnLive: Access both a degree of Windows desktop functionality and full Windows versions of Microsoft Office Suite.
CloudOn: This was one of the first solutions for iOS productivity. Syncing with Dropbox, CloudOn offers a more complete Windows desktop. The tradeoff is it also offers a more pared-down version of Word, Excel, and PowerPoint.
rollApp: Offers Open Office programs for iOS, also utilizing Dropbox.
LogMeIn: Remotely access your home computer's desktop from your iOS device. This solution requires coordination of logins, settings, and hookups. The free version does not offer file transfer, but you can get a separate, free app for that.
Google Docs: Now featuring Google Drive for iOS, users no longer have to battle with pressing the Refresh periodically to initiate syncing. This makes collaboration much smoother, resulting in a stronger office productivity product. -
Transferring purchases from your iOS device or iPod to a computer through Newest version of Itunes; i could not find the icon in the new version
I too was looking for the same thing and found it. Go to File (top bar next to iTunes), Devices, Transfer purchases...
-
I have forgoten the security questions,i have tryed ewerithing to reset all of the instructions i have recived from the apple support team. I still can not reset the questions. Can some body please help me to reset them. Thank you and best regards
Since this is a user-to-user support forum, there isn't much we can do other than refer you to the following instructions and as noted in the instructions, then to Apple Support if you can't reset as shown in the instructions: If you forgot the answers to your Apple ID security questions
-
The error message was cd created on newer version of iTunes. If the disk was a audio cd it should not matter the iTunes version. I converted all songs on playlist to MP3 and then selected burn playlist and checked audio cd. This worked in itunes 11.0.5. Also itunes 11.1 will not accept the second disk on a cd audio burn. It just keeps telling me to insert a blank disk, no matter how many blank disks are inserted
I think that the operating system is 10.4.11 and iTunes isn't responding to this operating system. I cannot upgrade the operating system to a version any later than what it is as I think it would then go to Tiger.
10.4 is Tiger, and 10.4.11 supports the latest version of iTunes and QuickTime. So either the system isn't at 10.4.11 - your original post said 10.4.1 - or there's something wrong with the system in which case earlier versions of iTunes/QuickTime might well also fail to install.
Please confirm the version of Mac OS X that really is on the system and we'll go from there. -
Hello, I purchased design premium 4.0 German Windows (LIZ 390232 from 22.02.2010) from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not disable the product key. He loaded it, but only in Englisch (trial version?) Please help me for the next step. I have the license agreement in my hand.
Moving this discussion to the Downloading, Installing, Setting Up forum.
Jakobh53157856 before you begin the installation process please complete the transfer of license process to transfer the Adobe Creative software license you wish to utilize to your possession, You can find details regarding the transfer process at Transfer an Adobe product license. -
After moving my music library from my old mb to the new one, my new mb pro does not play the files evenly. It takes a break for two sec's and starts playback where it stopped. Ideas anyone?
I may have found an answer here:
http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive
They only thing I can assume is that my external hard drive was slow to start and iTunes defaulted to its old directory (see the last paragraph at the link above). However, once my external was recognized shouldn't everything have fixed itself?
Message was edited by: williamson42
Message was edited by: williamson42 -
Hello everyone. Can anyone shed some light on this problem? If I downloaded an app from the app store called "Print to PDF" that allows opening any application and going to print converts that to a PDF e.g. Safari pages, mail etc and I did not sync or "transfer purchases" for some time and when I look in the app store that app is no longer there so I thought if I could "transfer purchases" iTunes would then have the .ipa and I could back it up and copy it to my iPad 2 but I don't see the ipa in the "mobile applications" directory. How do I get it off my iPad and into iTunes to backup?
Thanks for any help you can give!Ashka, I have tried to "transfer purchases from device" but that is what I am saying that I do not see the app in the "mobile applications" directory after I do that process. I was wondering if anyone else knew of a way to get to the ipa file that is stored on the iPad such as a program that could browse the directories of the iPad of even an app that could do it so I can get and save the actual app in ipa format.
-
I upgraded from iPhone 3G to 4S a few days ago. When setting up the new 4S, I choose to restore my last 3G backup. It started by updating the OS to version 5.1 (9B179) then restored my apps and setting. Everything went well except that I realized I do not have the new apps which come with the 4S, like FaceTime, HD video and Siri.
What should I do to correct this?
Thank you in advance for any help on this.Ah, FaceTime is not an app, either. It's accessed by tapping the FaceTime button when you are in the contacts app and have selected a contact. This can also be done from the Phone app under the Contacts tab, or during a call, you can switch to FaceTime.
Let me know what other apps/features you are missing. -
I am using an old ibook G4 ppc with mac os x 10.4.11. A day before by default I delete one file and I think it was the startup file of os because after that when I restarted my notebook it's not running the OS only that blue screen is there. This notebook was a gift for me and still it is so close to my heart. I don't wana loose it. Please, help me out.
Without the install CD, you are hosed.
What happened to it?
It is possible to call AppleCare and order a replacement. They will charge you a nominal fee for shipping and handling.
Allan
Maybe you are looking for
-
How can i restore my iPhone from an older back-up?
Hi there, Recently, my iPhone 4 was restored by Apple. When I plugged my iPhone in to iTunes it automatically synced and did a back-up. It then restored my phone with the apps and music that were on my phone at the time of the last back-up, however n
-
i generally download songs from free sites like songs.pk, emp3world.com.........i am able to download songs from same sites in other browser like opera just by clicking on link to download, but in firefox a black screen appears and media is played on
-
How to compile a class from a Servlet using ant!!!
Hi I have the following problem: I have a Servlet that must compile a java class. Here is the code that i use to compile: File buildFile = new File(build.xml path); String[] arg = { "-buildfile", buildFile.toString(), "compile" }; Properties userProp
-
Function Buttons Problem on my ZiiO
My function buttons(search, home, list, back) on my Ziio 7" are not working lately. I even tried resetting my factory settings and nothing happened. The problem's there to stay. Can anyone help me? And if possible, I need to know other ways on how to
-
Security solutions - no remote wipe Freeware
Hi, I have an E61 and I am amazed by the number of different security solutions for locking the phone, sending thief-finding text messages, remotely turning on a siren and all sorts of fancy gadgets. I´m equally amazed by the fact that up to now a se