COM SUN PROXY PROXY5 CANNOT BE CAST TO
Well, each call to a method in LectureRecordingLocalServiceUtil will continuously try to get the service object you can actually look at the generated source, the LectureRecordingLocalServiceUtil class will have a getService method which is responsible for getting the service implementation object, it’s inside this code where the bean locator exception results. The ‘trigger’ on all of this is that we are moving from using Netbeans to Eclipse and the move hasn’t been smooth for many different reasons we started with changing too many things like target server: I think my problem is slightly different and I’ll describe it as best I can. Post as a guest Name. Home Liferay Portal English 3. What is at line when the proxy error occurs? Sign up or log in Sign up using Google. I then pointed everything that needed the service classes to this new location.
SB services cannot be accessed from a servlet in Tomcat, period and yet they can be in Glassfish. The plot thickens a bit because there are two goals here: You may be trying to access this site from a secured browser on the server. I assume based on your discussion that I’d read this problem is a result of the order the server is being loaded and Spring not being able to find the classes because they haven’t been loaded yet — I am a Spring novice and that is a generous description for myself. The error occurs for me whenever I invoke an SB method regardless of when. The class loader in tomcat should allow you to have the same class in two projects as long as the class doesn’t get loaded from the global class loader. But, it sounds like those ‘extra’ classes are only generated in the. The other “odd” thing here is that this code is basically unmodified from the version that was created using Netbeans.
If you were doing the calls to LectureRecordingLocalServiceUtil on demand after the container was available, then the bean locator con should have been good to go at that point. Helpful for understanding Guice too. The Pointcut will call your around method and then invoke the perform method on the encapsulated object.
Build the services using ant to recreate all of the source files. Did this KB document help you? So my assumption jibes with your experience. There is something in the ant build that is not correctly building the correct war structure in Eclipse or I am not building the war correctly.
This represents a failure in your plugin that is providing the service, not an external portlet since the service jar does not have any of the actual implementation details. I have a services portlet that was generated using the service builder. I then pointed everything that needed the service classes to this new location.
‘[groovy-user] MockFor of inner classes has misc. problems’ – MARC
I think I am closer to understanding the issue after wrestling with it over the weekend. Sign up using Facebook. This is the reason you are not able to cast to actual class, but are able to cast to the interface the class is implementing.
I suspect that I am either sn the SB portlet incorrectly or that Eclipse is building things slightly differently than NB.
Please enable scripts and reload this page. What is at line when the proxy error occurs?
FWIF I am using the 6. Doesn’t make a difference whether it is this particular method is a “finder” or not.
Singer but if i typecast the same using Performer class it runs finethis is the changed code, package com. Sign up using Email and Password. Do I have that correct?
The ‘trigger’ on all of this is that we are moving from using Netbeans ccom Eclipse and the move hasn’t been smooth for many different reasons we started with changing too many things like target server: The Netbeans generated war and service jar works fine when deployed to LR.
I think czst problem is slightly different but reasonably close and I’ll describe it as best I wun. BeanLocator has not been set at com. If you have the spring sources, you can debug through the spring sources and see how spring creates the proxy. What if i want to invoke method which is present only in Singer class, let say method xyz in class Singerthan invoking xyz using performed will give compilation error right?
This page location is: Email Required, but never shown. That’s basically why you can cast the userDao bean to the Dao interfacebut not to the UserDao class.
When my servlet invokes a method from the SB portlet jar is it at that point that an attempt is made to locate the bean? Post as a guest Name.