Current Problems

By alexaggregate

First off, I’m getting ‘com.ibatis.sqlmap.client.SqlMapException: There is no statement named getWebsite in this SqlMap.’ – even though there is one. Even if I try to call it with namespace, like WebSite.getWebSite. I also tried ‘allWebsites’ to get a java.util.List.

Second thing, somehow I can’t update the files in Eclipse. When I change my WebSiteDAOImpl with iBatis connection, and Run the project, I keep hearing same old ‘com.ibatis.sqlmap.client.SqlMapException: There is no statement named getWebsite in this SqlMap.’ Even when I comment all of the lines. So it’s obvious that the class just doesn’t get reloaded (I tried OSGi command ’shutdown’, stopping the execution, reopening Eclipse, restarting Linux).

Then I tried deleting ‘bin’ folder, so that it sees I don’t have classes and just remakes them. What it says is ‘i don’t see your classes’.

________________________________________________________

Short note about Eclipse.

1. Sometimes it just ‘loses’ your classes and says it doesn’t see them, when in reality they’re in place.

2. Sometimes its MANIFEST editor won’t save any changes. What helps is reopening Eclipse

5 Responses to “Current Problems”

  1. rgrzywinski Says:

    You tried:

    http://forum.springframework.org/archive/index.php/t-25328.html

    ?

  2. rgrzywinski Says:

    Yes, Eclipse will sometimes miss an update (or update while files are being generated) and then claim that it can’t see the files. The solution is to just refresh the project (Right-click on the project – “Refresh” — or just hit F5).

    Did you look at the log file to see why the manifest editor may be puking? Find the .metadata/.log file and see what it is telling you.

  3. alexaggregate Says:

    I’ve read that springframework topic today and it really didn’t help – I tried it all.
    What actually helped is I went home and run the same configuration here. Under Windows, but I don’t think that’s the point.
    IT WORKED ABSOLUTELY GREAT. The thing that I was trying to solve all day long was totally because of Eclipse!

  4. alexaggregate Says:

    The F5/Refresh suggestion doesn’t work. I tried that many times, today and before. I’m having this problem right now, out of a sudden the file WebSiteDAOImpl isn’t updated anymore.
    I googled the error and my search didn’t get me any new ideas on handling that.

  5. rgrzywinski Says:

    I believe that you should factor Eclipse out of the equation. Once you’re certain that you can run bundles the way you want in a stand-alone OSGi container then leverage what Eclipse provides to speed up that development. I know that it seems backwards, but most of the time all of the whiz-bang tools that you get with Eclipse for OSGi are only useful if you know what you’re doing (which you figure out by not using them) :)

Leave a Reply