Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6791491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:51:10+00:00 2026-05-26T17:51:10+00:00

I am writing a Google App Engine web app and wish to use Scala

  • 0

I am writing a Google App Engine web app and wish to use Scala on the server side. I’m using Eclipse and the Google App Engine plugin. However, as soon as I add an empty Scala class source file to my project, the DataNucleus enhancer warns:

SEVERE: Class “com.my.package.UserAccount” was not found in the
CLASSPATH. Please check your specification and your CLASSPATH.

I will eventually get round to making the class persistent but I want to get rid of this error first.

So far I’ve added the Scala Nature, and have tried cleaning the project and also restarting Eclipse but I always get the same warning issued from the enhancer.

Any ideas on what I can do to get the enhancer to run successfully?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:51:11+00:00Added an answer on May 26, 2026 at 5:51 pm

    I’ve struggled away with this for the last few days. Class not found errors thrown by the datanucleus enhancer on Scala classes occur because the scala-library.jar file isn’t in the classpath when the enhancer runs. I’ve found two solutions:

    1. Simple but cludgy: Copy scala-library.jar to the folder in eclipse/plugins which contains the enhancer. For me this is currently: /opt/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.5.5.r36v201110112027/appengine-java-sdk-1.5.5/lib/tools/orm

    2. Switch off the enhancer builder in your project properties and create an ant file to run it manually. You can then properly control the classpath. I really struggled to get the scala-library into the classpath so gave up and copied it into the same folder as my datanucleus jars. My ant file if anyone’s interested is:

    <project name="DataNucleusEnhancer" default="enhance" basedir="."> 
        <property name="base.dir" location="/home/steve/Projects/DNProject"/>
        <property name="datanucleus.libs" location="/home/steve/Projects/Jar Libraries/datanucleusjars"/>
        <property name="sdk.dir" location="/opt/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.5.5.r36v201110112027/appengine-java-sdk-1.5.5"/>
        <property name="classes.dir" location="${base.dir}/war/WEB-INF/classes/"/>
        <property name="entities.dir" location="${base.dir}/war/WEB-INF/classes/packagenamehere/entities"/>
    
        <path id="enhancer.classpath">
            <fileset dir="${datanucleus.libs}" includes="*.jar" excludes="" />
            <fileset dir="${sdk.dir}/lib/user" includes="*.jar" />
        </path>
    
        <target name="enhance" description="DataNucleus enhancement">
            <taskdef name="datanucleusenhancer" classpathref="enhancer.classpath" classname="org.datanucleus.enhancer.tools.EnhancerTask" />
            <datanucleusenhancer dir="${classes.dir}" failonerror="true" verbose="true">
                <fileset dir="${entities.dir}" includes="**/*.class" />
                <classpath>
                <path location="${base.dir}/war/WEB-INF/classes/"/>
                    <path refid="enhancer.classpath"/>
                </classpath>
            </datanucleusenhancer>
        </target>
    
    </project>
    

    In testing I also found the enhancer unwilling to enhance classes if I had no namespaces. I’m also concerned that I now need to manage the copy of scala-library.jar to make sure it’s the same as in the scala eclipse plugin. It’d be much better if the gae plugin worked properly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing application which consists of server side on Google App Engine (Java) and
i am writing a web proxy in java on google App engine.I figured out
I'm writing a Java servlet in Eclipse (to be hosted on Google App Engine)
I am looking at writing a Java web application on Google App Engine. I
I'm using google app engine, and am having trouble writing querys to filter ReferenceProperties.
I am writing an Android app that talks to a Google App Engine server.
All! I'm writing an application that would run on Google App Engine. I'm using
I am writing a web application using GWT and App Engine. My application will
I'm writing a Google App Engine application using the WebApp framework. I'd like the
I'm writing a Scala app, to be deployed on the Google App Engine. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.