Hello,

Just a quick followup to post the stack trace i get when i try this(see below). 
As you can see, this is very much a CF problem: the call never gets to the EJB, 
because CF can't seem to figure out which method to call on the bean (as 
evidenced by the "coldfusion.runtime.java.MethodSelectionException AT 
coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules" message). Once 
again, this only occurs when trying to pass a java object i create myself 
(using cfobject or createobject, it makes no difference) to the EJB. If the EJB 
passes me the object, i can pass it back no problems. The object itself is a 
very basic bean, nothing special to it.

If anybody has any thoughts on this, i'd love to hear them...

/t

---stack---
coldfusion.runtime.java.MethodSelectionException: The selected method 
getOrderShippingAddresses was not found.
       at 
coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHandler.java:176)
       at coldfusion.runtime.StructBean.invoke(StructBean.java:398)
       at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1655)
       at 
cfjava2ecfm529654359.runPage(/home/web/hsmc/cfusion-war/tanguyland/java.cfm:46)
       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
       at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
       at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
       at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
       at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
       at 
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
       at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
       at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
       at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
       at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
       at coldfusion.CfmServlet.service(CfmServlet.java:105)
       at 
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
       at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
       at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
       at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
       at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6722)
       at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
       at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
       at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
       at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
       at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
       at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

>Hello List,
>
>I'm running into a problem using CFMX7 enterprise on weblogic to call an
>EJB deployed in the same instance of weblogic (so it's running in the
>same JVM), but in a different application (so it's loaded by a different
>classloader). The basic problem is that i can't pass objects that i
>create in CF to the EJB - the call fails with a NoSuchMethodError
>because (i'm speculating here) the object that i'm passing was loaded
>with a different classloader than the one "expected" on the other side
>(If the EJB is deployed in a different instance of weblogic, then
>everything works as advertised, but that's not an option for me.
>Likewise if the EJB is deployed in the same app as cf.).
>
>So far, i'm getting around this by having the EJB give me empty
>instances of the objects in question, which i then populate with data
>and return to the EJB, but this has the nasty side effect of adding all
>kinds of getX() methods to the java API, which i have to "share" with
>java developers writing "regular" java web apps (which have no problem
>whatsoever doing what i'm trying to do). I've looked into creating a
>pojo business delegate (a simple object that sits between cfmx and the
>ejb in question, and handles things like lookups) but i'm running into
>the same problems - i can look up an EJB but i can't pass objects i
>created to it.
>
>Has anybody here achieved what i'm trying to do? Any pointers or hints,
>even just "it worked fine for us", would be much appreciated.
>
>Thanks for your time,
>/t

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220038
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to