facebook

Web app has problems with jdo metadata file

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    rshearin
    Member

    information- System Setup ——————————-
    Operating System and version: 2000
    Eclipse version: 2.7RC2
    Eclipse build id: 200306271545
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? n
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory:
    MyEclipse version:
    Eclipse JDK version:
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file?

    – Message Body ——————————-

    I have deployed a web app that uses Struts and JDO. When I try to execute code that requires the use of jdo metadata, I get the following error.

    javax.servlet.ServletException: Type “class com.bd.rms.Supplier” cannot be used in queries, because it does not have JDO metadata or mapping information

    My JDO metadata file exists in the same directory as the model classes and I have enhanced it before deploying the web app.undefined

    #202788

    support-michael
    Keymaster

    The easiest way to ensure that your resources will be deployed is to inspect your web project’s <web-root>/WEB-INF folders, e.g., lib and classes for the presence of such resources. If they are not present in under the <web-root> after performing a rebuild on your project then they will not be part of a deployment. If the resource is found under the <web-root> then you have a configuration problem with JDO or whatever 3rd party technology you may be using.

    I hope this helps. Please follow up with your findings.

    #202793

    rshearin
    Member

    I believe that I’ve determined that the actual problem is not that anything is missing from where it needs to be, it’s that when I attempt to enhance the jdo metadata file, the console states that they are already enhanced but the classes in WEB-INF are not enhanced and thus, enhanced classes never get deployed with the web app. I found that I can enhance in another project and drop the enhanced classes into WEB-INF before deploying and everything will work fine but that’s not a very efficient solution. Is there a way to enhance a jdo metadata file and get the enhanced classes into WEB-INF w/out having to do it in another project and copy and paste them over the unenhanced ones?

    #202795

    support-michael
    Keymaster

    I have no idea how your JDO enhancer works. If it operates on .class files just point it to the <web-root>/WEB-INF/classes folder of your project. If produces output based on a web-project’s bin folder you should be good since the output folder for a ME web project is <myproject>/<web-root>/WEB-INF/classes.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Web app has problems with jdo metadata file

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