facebook

Spring DSL Problems

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #322966 Reply

    kadirb
    Member

    Hello i’m new user on spring and spring myeclipse.
    I’ve opened new project its webservice project.

    But there are some problems;
    1-) When i put some xml data on myproject-service-context.xml like;
    <bean id=”cacheManager” class=”org.springframework.cache.ehcache.EhCacheManagerFactoryBean”>
    <property name=”configLocation”>
    <value>classpath:com/ircim/ehcache.xml</value>
    </property>
    </bean>

    When i edit sourcecodes , my all xml data deleted on myproject-service-context.xml

    2-) I cant get ip address of the user from Spring DSL WebService… my code implementation just giving me my parameters.
    3-) When i try to run my webserver on debug mode , i got this error
    http://d1202.hizliresim.com/u/4/2ds7m.png

    #322977 Reply

    cconway
    Member

    Hi kadirb,

    There is supposed to be a merger that merges your changes, but that appears to be not working. You can configure the DSL-enabled project to stop managing that file by following these steps:

    1. Open the Project Explorer view (Window > Show View > Project Explorer).
    2. Expand your project and double-click the “Spring DSL” node.
    3. On the Code Generation tab of the editor that appears, sort by “Categories”
    4. Find the entries for the “service” category
    5. Locate the entry with “Service Context” in the name column.
    6. Un-check the box for that Service Context entry.

    The only items that we emit into the service context are these:
    <context:component-scan base-package=”com.test.service” scoped-proxy=”interfaces” />
    <tx:annotation-driven transaction-manager=”transactionManager” />

    Just make sure those two entries are in the service context and you should be good to go.

    You may want to consider not using the Spring DSL on your project to avoid these types of problems when the code is reverse compiled into the DSL.

    For the second problem, I don’t really understand your question. You’ll have to provide more detail.

    For the third problem, please get the actual error message from the server console. It should list the Java class that is not found. With that information, we can attempt to debug the problem.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Spring DSL Problems

You must be logged in to post in the forum log in