Giter Club home page Giter Club logo

Comments (5)

ralscha avatar ralscha commented on July 30, 2024

Hi. This looks like a problem with Spring component scanning. I guess
apiController and your HelloDemoService bean are not in the same
application context. Do you have an example project that demonstrates the
problem?

On Thu, Sep 20, 2012 at 8:00 AM, egogarcia [email protected] wrote:

Hello,

Good job.

I have this service:

@service https://github.com/service
public class HelloDemoService {

@ExtDirectMethod
public String doHello(String message) {
return "Hola " + message;
}

}

But in my api-demo.js not appears (actions is empty) :

Ext.ns('Ext.app');Ext.app.REMOTING_API =
{
"url":"/smf-extjs-demo/action/router",
"type":"remoting",
"actions":{},
"timeout":12000,
"maxRetries":10,
"enableBuffer":false
};


Reply to this email directly or view it on GitHubhttps://github.com//issues/41.

from extdirectspring.

egogarcia avatar egogarcia commented on July 30, 2024

Thanks, I think that component scanning is correct:

<context:component-scan
base-package="com.smf.extjs.extdirectspring, com.smf.extjs.webController" />

Take a look into mi example src code is here:

https://github.com/egogarcia/extjsdirectspring-test

Thanks a lot

from extdirectspring.

ralscha avatar ralscha commented on July 30, 2024

I see the problem. The program starts two Spring application contexts (*
action* and spring). And they have no knowledge of each other.
The apiController is located in the *action *application context and your
beans lives in the *spring *context. The problem ist that the apiController
from ExtDirectSpring only finds the beans in it's own and in the
parent application context.

One solution is moving everything from action-servlet.xml into
spring-servlet.xml.

On Thu, Sep 20, 2012 at 9:59 AM, egogarcia [email protected] wrote:

Thanks, I think that componet scanning is correct:

base-package="com.smf.extjs.extdirectspring, com.smf.extjs.webController"
/>

Take a look into mi example src code is here:

https://github.com/egogarcia/extjsdirectspring-test

Thanks a lot


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-8719424.

from extdirectspring.

ralscha avatar ralscha commented on July 30, 2024

Here is a description in the Spring documentation about Context hierarchy
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/mvc.html#mvc-servlet

On Thu, Sep 20, 2012 at 10:12 AM, Ralph Schaer [email protected]:

I see the problem. The program starts two Spring application contexts (*
action* and spring). And they have no knowledge of each other.
The apiController is located in the *action *application context and your
beans lives in the *spring *context. The problem ist that the
apiController from ExtDirectSpring only finds the beans in it's own and in
the parent application context.

One solution is moving everything from action-servlet.xml into
spring-servlet.xml.

On Thu, Sep 20, 2012 at 9:59 AM, egogarcia [email protected]:

Thanks, I think that componet scanning is correct:

base-package="com.smf.extjs.extdirectspring, com.smf.extjs.webController"
/>

Take a look into mi example src code is here:

https://github.com/egogarcia/extjsdirectspring-test

Thanks a lot


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-8719424.

from extdirectspring.

egogarcia avatar egogarcia commented on July 30, 2024

Solved!!!

A lot of thanks

Lets Start to play with extdirectspring!!

from extdirectspring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.