Hi Pion,
I'm glad that everything seems to be working now. Just to be clear, your
Java build path should have a Classpath Container called "App Engine SDK".
None of the entries within that container should point to the libraries in
your war/WEB-INF/lib folder.

Whenever the SDK jars are not in sync with the jars in your war/WEB-INF/lib
folder, you should see a warning message. If you select that message and hit
CTRL-1, that will give you the option to "fix" the problem by syncing up the
jars - i.e. copying them to your war/WEB-INF/lib folder.


Thanks,
Rajeev

On Wed, Aug 12, 2009 at 7:49 PM, Pion <[email protected]> wrote:

>
> I am using Eclipse. My "Java Build Path" points the external jars to a
> folder (not war/WEB-INF/lib. Per your question below, I did the
> following:
>
> 1. Copy the external jar files manually to the war\WEB-INF\lib
> 2. Set my "Java Build Path Libraries" to point to the jar files
> located in war\WEB-INF\lib.
>
> The above steps have solved the problem. The errors go away now!
>
> Thanks all for your help!
>
> On Aug 12, 6:50 am, Miguel Méndez <[email protected]> wrote:
> > Now that the file is in war/WEB-INF/lib, does the classpath entry point
> to
> > the one in war/WEB-INF/lib or does it point to the original location?
> > Also, is there not warning on project with a quick fix?
> >
> >
> >
> > On Tue, Aug 11, 2009 at 5:25 PM, Pion <[email protected]> wrote:
> >
> > > I have just copied (manually) the file to war/WEB-INF/lib. But the
> > > error message is still there.
> >
> > > On Aug 10, 7:02 am, Jason Parekh <[email protected]> wrote:
> > > > Oh, that could be your problem.  If you don't copy the JAR into
> > > > war/WEB-INF/lib, it may not get bundled in your war file and hence
> will
> > > be
> > > > unavailable to the app server.
> > > > jason
> >
> > > > On Sat, Aug 8, 2009 at 12:38 PM, Pion <[email protected]> wrote:
> >
> > > > > No, I did not manually copy commons-fileupload-1.2.1-javadoc.jar to
> > > > > the war/WEB-INF/lib directory . I just added the commons-
> > > > > fileupload-1.2.1-javadoc.jar using "Project Properties -> Java
> Build
> > > > > Path -> Libraries -> Add External JARS".
> > > > > Then, I got the classpath entry error.
> >
> > > > > On Aug 8, 9:16 am, Jason Parekh <[email protected]> wrote:
> > > > > > Hmm, are you placing that JAR in war/WEB-INF/lib?
> > > > > > jason
> >
> > > > > > On Sat, Aug 8, 2009 at 11:48 AM, Pion <[email protected]>
> wrote:
> >
> > > > > > > > > Per your suggestion below, I created a default new project
> > > > > > > > > (GreetingService sample) using Galileo. It ran fine without
> any
> > > > > error
> > > > > > > > > and the Galileo "Markers" tab does not show any error.
> >
> > > > > > > I just added external jar commons-fileupload-1.2.1-javadoc.jar
> to
> > > this
> > > > > > > GreetingService sample. It does produce the error "2. Google
> Web
> > > App
> > > > > > > Problem -- The following classpath entry 'D:\download\commons-
> > > > > > > fileupload-1.2.1\lib\commons-fileupload-1.2.1-javadoc.jar' will
> not
> > > be
> > > > > > > available on the server's classpath ".
> >
> > > > > > > On Aug 8, 8:20 am, Pion <[email protected]> wrote:
> > > > > > > > One more thing ... I did clean the project. The errors still
> show
> > > up.
> >
> > > > > > > > On Aug 8, 8:17 am, Pion <[email protected]> wrote:
> >
> > > > > > > > > Thanks for looking into this problem.
> >
> > > > > > > > > Yes, the Galileo " Project Properties -> Java Build Path ->
> > > > > Libraries"
> > > > > > > > > shows the JRE, App Engine SDK 1.2.2, GWT SDK 1.7.0 and some
> my
> > > > > > > > > external jars (for example,
> > > commons-fileupload-1.2.1-javadoc.jar).
> >
> > > > > > > > > I did the following this morning:
> >
> > > > > > > > > 1. Installed Galileo (
> > > > >http://www.eclipse.org/downloads/download.php?
> >
> > > > >
> file=/technology/epp/downloads/release/galileo/R/eclipse-jee-galileo-
> > > > > > > > > win32.zip) from scratch.
> > > > > > > > > 2. Followed "Google Plugin for Eclipse 3.5 (Galileo)
> > > Installation
> > > > > > > > > Instructions"
> > > > > > >http://code.google.com/eclipse/docs/install-eclipse-3.5.html
> > > > > > > > > 3. Imported my previous project/app created by Eclipse 3.4
> > > > > (Ganymede)
> > > > > > > > > -http://dl.google.com/eclipse/plugin/3.4.
> >
> > > > > > > > > Per your suggestion below, I created a default new project
> > > > > > > > > (GreetingService sample) using Galileo. It ran fine without
> any
> > > > > error
> > > > > > > > > and the Galileo "Markers" tab does not show any error.
> >
> > > > > > > > > I notice a few differences between Eclipse Galileo and
> > > Ganymede:
> > > > > > > > > 1. Galileo seems to be more strict. It gave more
> > > warnings/problems.
> > > > > > > > > 2. Galileo calls both "warnings and problems" as "problems.
> > > > > Ganymede
> > > > > > > > > differentiates them.
> > > > > > > > > 3. Galileo puts the "External Jars" files under the project
> > > > > directory
> > > > > > > > > directly. Ganymede does create "External Jars" folder and
> store
> > > the
> > > > > > > > > external jars in that folder.
> >
> > > > > > > > > Please let me know if you want me to try something else.
> >
> > > > > > > > > Again, thanks for your help.
> >
> > > > > > > > > On Aug 8, 6:58 am, Jason Parekh <[email protected]>
> wrote:
> >
> > > > > > > > > > Hey Pion,
> > > > > > > > > > Strange errors.
> >
> > > > > > > > > > Can you check a couple things in the project's
> properties:
> > > > > > > > > > - Java build path > Libraries, do you see a JRE there?
> > > > > > > > > > - Google > App Engine and Google > Web Toolkit, what
> versions
> > > of
> > > > > GWT
> > > > > > > and GAE
> > > > > > > > > > are you using?
> > > > > > > > > > - Have you tried a clean build?
> >
> > > > > > > > > > Also, try creating a new project (the default
> GreetingService
> > > > > sample
> > > > > > > is
> > > > > > > > > > fine), does this work?
> >
> > > > > > > > > > jason
> >
> > > > > > > > > > On Sat, Aug 8, 2009 at 9:46 AM, Pion <
> [email protected]>
> > > > > wrote:
> >
> > > > > > > > > > > I have just upgraded from Eclipse 3.4 (Ganymede) -
> > > > > > > > > > >http://dl.google.com/eclipse/plugin/3.4
> > > > > > > > > > > to Eclipse 3.5 (Galileo) -
> > > > >http://dl.google.com/eclipse/plugin/3.5.
> >
> > > > > > > > > > > I then imported my existing GAE+GWT app. Although it
> runs
> > > > > (locally)
> > > > > > > as
> > > > > > > > > > > before, Eclipse Galileo reports the following problems
> > > (under
> > > > > > > Galileo
> > > > > > > > > > > new “Markers” tab):
> >
> > > > > > > > > > > 1. Google App Engine Problem -- Your Web Application
> > > Project
> > > > > must
> > > > > > > be
> > > > > > > > > > > configured to use a JDK in order to use JSPs.
> >
> > > > > > > > > > > 2. Google Web App Problem -- The following classpath
> entry
> > > > > > > 'D:\download
> >
> > > > > \commons-fileupload-1.2.1\lib\commons-fileupload-1.2.1-javadoc.jar'
> > > > > > > > > > > will not be available on the server's classpath
> >
> > > > > > > > > > > The above errors only show up on Eclipse 3.5 (Galileo)
>  but
> > > not
> > > > > on
> > > > > > > 3.4
> > > > > > > > > > > (Ganymede). Although my app still runs (locally) as
> before,
> > > > > those
> > > > > > > > > > > errors worry me during deployment.
> >
> > > > > > > > > > > Thanks in advance for your help.
> >
> > --
> > Miguel
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to